Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implements hook_theme_suggestions_form_element_label().
- */
- function boots_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
- $node = \Drupal::routeMatch()->getParameter('node');
- if ($node instanceof \Drupal\node\NodeInterface) {
- $type = $node->getType();
- if ($type == 'form') {
- $suggestions[] = $hook . '__' . $type;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement