X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fcontextual_links_view_alter.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd8%2Fhook%2Fcontextual_links_view_alter.twig;h=68bacd9e911c3c09a852aac7761003bd4717c672;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_view_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_view_alter.twig new file mode 100644 index 000000000..68bacd9e9 --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d8/hook/contextual_links_view_alter.twig @@ -0,0 +1,8 @@ +/** + * Implements hook_contextual_links_view_alter(). + */ +function {{ machine_name }}_contextual_links_view_alter(&$element, $items) { + // Add another class to all contextual link lists to facilitate custom + // styling. + $element['#attributes']['class'][] = 'custom-class'; +}