Commit 39e97f3b authored by webchick's avatar webchick

Issue #2481751 by yogen.prasad, deepakaryan1988, Cottser, andypost,...

Issue #2481751 by yogen.prasad, deepakaryan1988, Cottser, andypost, joelpittet, willzyx: Don't use full namespace for \Drupal\views\ViewExecutable in views.module
parent fc0c278b
......@@ -278,7 +278,7 @@ function views_theme_suggestions_comment_alter(array &$suggestions, array $varia
* Implements hook_theme_suggestions_HOOK_alter().
*/
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 \Drupal\views\ViewExecutable) {
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'));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment