By editor, 17 September, 2017 Disable cache for a specific page Tags Drupal 8 Code Cache Module Disable cache for a custom page from route declaration. If you want to disable cache for a custom controller (Custom module), You have no_cache option (YOUR_MODULE.routing.yml). Example : File : mymodule.routing.yml
By editor, 13 September, 2017 Render a Node or an Entity Tags Drupal 8 Code Views Node Field Drupal 9 On drupal 8 every elements (almost) are an entity, as any entity you can render a node.
By editor, 12 September, 2017 Autocomplete function for textfield of Form API Tags Drupal 8 Code Form First, Create autocomplete controller and the route Example of the controller : DefaultController.php <?php namespace Drupal\mymodule\Controller;
By editor, 28 July, 2017 Change a metatag dynamicly Tags Drupal 8 Code SEO Hook Add meta tag from controller Example: Add <meta http-equiv="refresh" content="30"> $data = [ '#tag' => 'meta', '#attributes' => [
By editor, 25 July, 2017 How to create a JSON web service on drupal 8 ? Tags Drupal 8 Code Module WebService This is a simple example of a web service. For the example, We will make a service to multiply two numbers. Create JSON WebService module Create a module. Here : mywebservice
By editor, 21 July, 2017 Install Drupal console (basic usage) Tags Drupal 8 Console Download and Install
By editor, 20 July, 2017 Download and Install Composer on Linux Tags Drupal 8 Code Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Download Composer Link : https://getcomposer.org/download/
By editor, 29 June, 2017 Drupal coding Standard and Best Practice Tags Drupal 8 Code Debug Module Create a Drupal 8 module is a good idea, but develop as Drupal is BEST. The famous tools PhpCS and PhpCBF allow you to check and correct (some) drupal coding standards and best practice errors.
By editor, 13 June, 2017 Create a custom DRUSH command on drupal 8 Tags Drupal 8 Code Drush Module To create a custom drush command, you must create a custom module like this (Here, mymodu
By editor, 13 June, 2017 Alter table structure on Drupal 8 Tags Drupal 8 Code Database Module To update a table you must create a custom module. Example , Here we use mymodule.