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) {
    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')));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.