views_theme_suggestions_container_alter

views_theme_suggestions_container_alter(array &$suggestions, array $variables)

Implements hook_theme_suggestions_HOOK_alter().

File

core/modules/views/views.module, line 289
Primarily Drupal hooks and global API functions to manipulate views.

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'));
  }
}
doc_Drupal
2016-10-29 09:55:39
Comments
Leave a Comment

Please login to continue.