function DependentWithRemovalPluginInterface::onDependencyRemoval
Same name in other branches
- 9 core/modules/views/src/Plugin/DependentWithRemovalPluginInterface.php \Drupal\views\Plugin\DependentWithRemovalPluginInterface::onDependencyRemoval()
- 8.9.x core/modules/views/src/Plugin/DependentWithRemovalPluginInterface.php \Drupal\views\Plugin\DependentWithRemovalPluginInterface::onDependencyRemoval()
- 11.x core/modules/views/src/Plugin/DependentWithRemovalPluginInterface.php \Drupal\views\Plugin\DependentWithRemovalPluginInterface::onDependencyRemoval()
Allows a plugin to define whether it should be removed.
If this method returns TRUE then the plugin should be removed.
Parameters
array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme.
Return value
bool TRUE if the plugin instance should be removed.
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
\Drupal\Core\Config\ConfigEntityBase::preDelete()
\Drupal\Core\Config\ConfigManager::uninstall()
\Drupal\Core\Entity\EntityDisplayBase::onDependencyRemoval()
2 methods override DependentWithRemovalPluginInterface::onDependencyRemoval()
- EntityField::onDependencyRemoval in core/
modules/ views/ src/ Plugin/ views/ field/ EntityField.php - ModerationStateFilter::onDependencyRemoval in core/
modules/ content_moderation/ src/ Plugin/ views/ filter/ ModerationStateFilter.php - Allows a plugin to define whether it should be removed.
File
-
core/
modules/ views/ src/ Plugin/ DependentWithRemovalPluginInterface.php, line 29
Class
- DependentWithRemovalPluginInterface
- Provides an interface for a plugin that has dependencies that can be removed.
Namespace
Drupal\views\PluginCode
public function onDependencyRemoval(array $dependencies);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.