Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DependentWithRemovalPluginInterface.php

interface DependentWithRemovalPluginInterface

Provides an interface for a plugin that has dependencies that can be removed.

Hierarchy

  • interface \Drupal\views\Plugin\DependentWithRemovalPluginInterface

Expanded class hierarchy of DependentWithRemovalPluginInterface

All classes that implement DependentWithRemovalPluginInterface

Related topics

Views plugins
Overview of views plugins
3 files declare their use of DependentWithRemovalPluginInterface
EntityField.php in core/modules/views/src/Plugin/views/field/EntityField.php
ModerationStateFilter.php in core/modules/content_moderation/src/Plugin/views/filter/ModerationStateFilter.php
View.php in core/modules/views/src/Entity/View.php

File

core/modules/views/src/Plugin/DependentWithRemovalPluginInterface.php, line 10

Namespace

Drupal\views\Plugin
View source
interface DependentWithRemovalPluginInterface {
    
    /**
     * Allows a plugin to define whether it should be removed.
     *
     * If this method returns TRUE then the plugin should be removed.
     *
     * @param array $dependencies
     *   An array of dependencies that will be deleted keyed by dependency type.
     *   Dependency types are, for example, entity, module and theme.
     *
     * @return bool
     *   TRUE if the plugin instance should be removed.
     *
     * @see \Drupal\Core\Config\Entity\ConfigDependencyManager
     * @see \Drupal\Core\Config\ConfigEntityBase::preDelete()
     * @see \Drupal\Core\Config\ConfigManager::uninstall()
     * @see \Drupal\Core\Entity\EntityDisplayBase::onDependencyRemoval()
     */
    public function onDependencyRemoval(array $dependencies);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
DependentWithRemovalPluginInterface::onDependencyRemoval public function Allows a plugin to define whether it should be removed. 2
RSS feed
Powered by Drupal