Issue #1911492 by jibran, Manuel Garcia, derhasi, damiankloip, pcambra, dawehner, tstoeckler: Fixed Views try to find Custom StylePlugin template in core/modules/views/templates.

8.0.x
Nathaniel Catchpole 2013-08-21 11:35:55 +01:00
parent 876a1b180a
commit 120bbc9701
1 changed files with 2 additions and 1 deletions

View File

@ -120,6 +120,7 @@ function views_theme($existing, $type, $theme, $path) {
); );
$plugins = views_get_plugin_definitions(); $plugins = views_get_plugin_definitions();
$module_handler = Drupal::moduleHandler();
// Register theme functions for all style plugins. It provides a basic auto // Register theme functions for all style plugins. It provides a basic auto
// implementation of theme functions or template files by using the plugin // implementation of theme functions or template files by using the plugin
@ -136,7 +137,7 @@ function views_theme($existing, $type, $theme, $path) {
// templates folder. This will be in any case the root of the given module // templates folder. This will be in any case the root of the given module
// so we always need a module definition. // so we always need a module definition.
// @todo: watchdog or exception? // @todo: watchdog or exception?
if (!isset($def['provider']) || !Drupal::moduleHandler()->moduleExists($def['provider'])) { if (!isset($def['provider']) || !$module_handler->moduleExists($def['provider'])) {
continue; continue;
} }