Created
November 24, 2025 10:22
-
-
Save NikLP/0d721eca1d95780d21a23b0328825362 to your computer and use it in GitHub Desktop.
EVA theme suggestions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MYTHEME_theme_suggestions_eva_display_entity_view_alter(array &$suggestions, array $variables) { | |
| /** @var \Drupal\views\ViewExecutable $view */ | |
| $view = $variables['view']; | |
| $suggestions[] = implode('__', [ | |
| $variables['theme_hook_original'], | |
| $view->id(), | |
| ]); | |
| $suggestions[] = implode('__', [ | |
| $variables['theme_hook_original'], | |
| $view->id(), | |
| $view->current_display, | |
| ]); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment