Drupal 8

Drupal 8 : update + multilingual set-up

Updaten van Drupal 8
https://www.drupal.org/docs/7/updating-your-drupal-site/updating-drupal-using-drush

In Drupal 8, run the following from your site's root directory. composer update drush pm-update drupal

Multilingual set up
Referenties : https://www.ostraining.com/blog/drupal/d8-multi-lingual/

Drupal 8 theming

Debugging opzetten voor theming : settings.yml file aanmaken obv default.settings.yml

Hierin staat onder twig config : debug :true

Afzetten van compressie logica Simply copy it and rename it as sites/default/settings.local.php and uncomment the following lines in sites/default/settings.php: <?php if (file_exists(DIR . '/settings.local.php')) { include DIR . '/settings.local.php'; } ?>

Theme settings : https://www.drupal.org/docs/8/theming-drupal-8/creating-advanced-theme-settings Kunnen zowel in de .theme file als in een theme-settings.php file

Moeten worden geïmplementeerd via hook_form_system_theme_settings_alter

Inlezen van settings en berekenen van kolombreedte wordt gedaan in de theme file via hook_preprocess_page(&$vars). Arra $vars wordt doorgegeven aan de twig template.