Commit 120bbc97 authored by catch's avatar catch
Browse files

Issue #1911492 by jibran, Manuel Garcia, derhasi, damiankloip, pcambra,...

Issue #1911492 by jibran, Manuel Garcia, derhasi, damiankloip, pcambra, dawehner, tstoeckler: Fixed Views try to find Custom StylePlugin template in core/modules/views/templates.
parent 876a1b18
......@@ -120,6 +120,7 @@ function views_theme($existing, $type, $theme, $path) {
$plugins = views_get_plugin_definitions();
$module_handler = Drupal::moduleHandler();
// Register theme functions for all style plugins. It provides a basic auto
// 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
// so we always need a module definition.
// @todo: watchdog or exception?
if (!isset($def['provider']) || !Drupal::moduleHandler()->moduleExists($def['provider'])) {
if (!isset($def['provider']) || !$module_handler->moduleExists($def['provider'])) {
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