function views_theme_suggestions_container_alter
Same name in other branches
- 9 core/modules/views/views.module \views_theme_suggestions_container_alter()
- 10 core/modules/views/views.module \views_theme_suggestions_container_alter()
- 11.x core/modules/views/views.module \views_theme_suggestions_container_alter()
Implements hook_theme_suggestions_HOOK_alter().
File
-
core/
modules/ views/ views.module, line 293
Code
function views_theme_suggestions_container_alter(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, $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.