You are here

public function ConfigurablePluginInterface::onDependencyRemoval in Search API 8

Informs the plugin that some of its dependencies are being removed.

The plugin should attempt to change its configuration in a way to remove its dependency on those items. However, to avoid problems, it should (as far as possible) not add any new dependencies in the process, since there is no guarantee that those are not currently being removed, too.

Parameters

object[][] $dependencies: An array of dependencies, keyed by dependency type ("module", "config", etc.) and dependency name.

Return value

bool Whether the dependency was successfully removed from the plugin – that is, after the configuration changes that were made, none of the removed items are dependencies of this plugin anymore.

1 method overrides ConfigurablePluginInterface::onDependencyRemoval()
ConfigurablePluginBase::onDependencyRemoval in src/Plugin/ConfigurablePluginBase.php
Informs the plugin that some of its dependencies are being removed.

File

src/Plugin/ConfigurablePluginInterface.php, line 56

Class

ConfigurablePluginInterface
Describes a configurable Search API plugin.

Namespace

Drupal\search_api\Plugin

Code

public function onDependencyRemoval(array $dependencies);