/**
  * {@inheritdoc}
  */
 protected function calculatePluginDependencies(PluginInspectionInterface $instance)
 {
     // Only add dependencies for plugins that are enabled.
     // @see \Drupal\userprotect\Plugin\UserProtection\UserProtectionPluginCollection::getConfiguration()
     if (isset($this->protections[$instance->getPluginId()])) {
         parent::calculatePluginDependencies($instance);
     }
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 protected function calculatePluginDependencies(PluginInspectionInterface $instance)
 {
     // Only add dependencies for plugins that are actually configured. This is
     // necessary because the filter plugin collection will return all available
     // filter plugins.
     // @see \Drupal\filter\FilterPluginCollection::getConfiguration()
     if (isset($this->filters[$instance->getPluginId()])) {
         parent::calculatePluginDependencies($instance);
     }
 }