[Note] Drupal Hook

Hooks From an implementation perspective hooks are specially-named functions called at specific times to alter or add to the base behavior. Each hook has a unique name (example: hook_entity_load()), a defined set of parameters, and a defined return value. Every hook has three parts; a name, an implementation, and a definition. The implementation consists of …

Continue reading

Understanding Drupal

What is Views? The views module allows administrators and site designers to create, manage, and display lists of content. Each list managed by the views module is known as a “view”, and the output of a view is known as a “display”. Displays are provided in either block or page form, and a single view …

Continue reading

[Note] Twig

Twig is a modern template engine for PHP Fast: Twig compiles templates down to plain optimized PHP code. The overhead compared to regular PHP code was reduced to the very minimum. Secure: Twig has a sandbox mode to evaluate untrusted template code. This allows Twig to be used as a template language for applications where …

Continue reading

Theming Drupal 8

Theme Folder Structure Theming Drupal 8 – Guide How to add in Drupal 8 a custom (suggestion) page template Drupal 8 custom page template Twig and Debugging Drupal 8 Theming Basics Locating Template Files with Debugging Clearing or rebuilding Drupal’s cache Regions: Theme Settings: Theme a contact form: Drupal 8 Theme a contact form Drupal Documents: …

Continue reading

Get started with Drupal 8

1. Install Drupal 1.1 Download and extract Drupal 1.2 Create the Drupal database 1.3 Run the install script.

Next, grant write privileges to the file to everyone (including the web server) with the command:

Be sure to set the permissions back after the installation is finished! Sample command:

Write permissions after install. …

Continue reading