Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291070

During installation the moduleHandler calls hook_hook_info without having the classloader setup properly

$
0
0

From #1881606-12: Use a derivative to integrate all entities as row plugins

+++ b/core/modules/views/views.module
@@ -828,11 +828,15 @@ function views_hook_info() {
+  // During installation the moduleHandler might call hook_hook_info without
+  // having the classloader setup properly.
+  if (class_exists('Drupal\\views\\ViewExecutable')) {
+    // Register a views_plugins alter hook for all plugin types.
+    foreach (ViewExecutable::getPluginTypes() as $type) {

Without that if(class_exists(... the installer failed with:

PHP Fatal error:  Class 'Drupal\views\ViewExecutable' not found


Viewing all articles
Browse latest Browse all 291070

Trending Articles