Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsHooks.php

function ViewsHooks::themeSuggestionsContainerAlter

Implements hook_theme_suggestions_HOOK_alter().

File

core/modules/views/src/Hook/ViewsHooks.php, line 254

Class

ViewsHooks
Hook implementations for views.

Namespace

Drupal\views\Hook

Code

public function themeSuggestionsContainerAlter(array &$suggestions, array $variables) : void {
    if (!empty($variables['element']['#type']) && $variables['element']['#type'] == 'more_link' && !empty($variables['element']['#view']) && $variables['element']['#view'] instanceof ViewExecutable) {
        $suggestions = array_merge($suggestions, array_reverse($variables['element']['#view']->buildThemeFunctions('container__more_link')));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal