Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Drupal\views\ViewExecutable;
- /**
- * Implements hook_theme_suggestions_HOOK_alter().
- */
- function block_templates_fix_theme_suggestions_views_view_table_alter(array &$suggestions, array $variables) {
- if (isset($variables['view']) && $variables['view'] instanceof ViewExecutable) {
- $id = $variables['view']->current_display;
- if (!in_array('views_view_table__' . $id, $suggestions)) {
- $suggestions[] = 'views_view_table__' . $id;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement