protected function ConfigurablePluginBase::getPluginDependencies in Search API 8
Calculates and returns 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.
Return value
array An array of dependencies keyed by the type of dependency.
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 121
Class
- ConfigurablePluginBase
- Provides a base class for all configurable Search API plugins.
Namespace
Drupal\search_api\PluginCode
protected function getPluginDependencies(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);
return $this
->traitGetPluginDependencies($instance);
}