Entity API Hooks function hook_entity_load(array $entities, $entity_type_id) { foreach ($entities as $entity) { $entity->foo = mymodule_add_something($entity); } } En savoir plus sur Entity API Hooks
Ajouter la custom class "container" de Bootstrap 4 au body de Drupal 8 Nous allons utiliser le hook_preprocess_HOOK, dont on va remplacé le dernier HOOK par html, pour ajouter une class au body de Drupal 8. En savoir plus sur Ajouter la custom class "container" de Bootstrap 4 au body de Drupal 8