Skip to content

Instantly share code, notes, and snippets.

@NikLP
Created November 24, 2025 10:22
Show Gist options
  • Select an option

  • Save NikLP/0d721eca1d95780d21a23b0328825362 to your computer and use it in GitHub Desktop.

Select an option

Save NikLP/0d721eca1d95780d21a23b0328825362 to your computer and use it in GitHub Desktop.
EVA theme suggestions
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