You are here

protected function ConfigurablePluginBase::calculatePluginDependencies in Search API 8

Calculates and adds dependencies of a specific plugin instance.

Dependencies are added for the module that provides the plugin, as well as any dependencies declared by the instance's calculateDependencies() method, if it implements \Drupal\Component\Plugin\DependentPluginInterface.

Parameters

\Drupal\Component\Plugin\PluginInspectionInterface $instance: The plugin instance.

Deprecated

in search_api:8.x-1.16 and is removed from search_api:2.0.0. Add \Drupal\Core\Plugin\PluginDependencyTrait manually for your class if you need it.

See also

https://www.drupal.org/node/3099004

File

src/Plugin/ConfigurablePluginBase.php, line 143

Class

ConfigurablePluginBase
Provides a base class for all configurable Search API plugins.

Namespace

Drupal\search_api\Plugin

Code

protected function calculatePluginDependencies(PluginInspectionInterface $instance) {
  @trigger_error('The use of \\Drupal\\Core\\Plugin\\PluginDependencyTrait via \\Drupal\\search_api\\Plugin\\ConfigurablePluginBase is deprecated in search_api:8.x-1.16 and is removed from search_api:2.0.0. Add \\Drupal\\Core\\Plugin\\PluginDependencyTrait manually for your class if you need it. See https://www.drupal.org/node/3099004', E_USER_DEPRECATED);
  $this
    ->traitCalculatePluginDependencies($instance);
}