diff --git a/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php b/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php index d09cdeb..428a917 100644 --- a/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php +++ b/core/modules/entity/lib/Drupal/entity/EntityDisplayBase.php @@ -165,10 +165,13 @@ public function calculateDependencies() { } // Create a dependency on the module that provides the formatter or // widget. - if (isset($component['type'])) { - $definition = $this->getRenderer($field_name)->getPluginDefinition(); + if ($plugin = $this->getRenderer($field_name)) { + $definition = $plugin->getPluginDefinition(); $this->addDependency('module', $definition['provider']); } + else { + debug($component); + } } // Depend on configured modes. if ($this->mode != 'default') {