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

Breadcrumb

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

function PluginSettingsBase::onDependencyRemoval

Overrides PluginSettingsInterface::onDependencyRemoval

4 calls to PluginSettingsBase::onDependencyRemoval()
ImageFormatter::onDependencyRemoval in core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
Informs the plugin that some configuration it depends on will be deleted.
ImageFormatter::onDependencyRemoval in core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
Informs the plugin that some configuration it depends on will be deleted.
ImageWidget::onDependencyRemoval in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Informs the plugin that some configuration it depends on will be deleted.
ImageWidget::onDependencyRemoval in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Informs the plugin that some configuration it depends on will be deleted.
2 methods override PluginSettingsBase::onDependencyRemoval()
ImageFormatter::onDependencyRemoval in core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatter.php
Informs the plugin that some configuration it depends on will be deleted.
ImageWidget::onDependencyRemoval in core/modules/image/src/Plugin/Field/FieldWidget/ImageWidget.php
Informs the plugin that some configuration it depends on will be deleted.

File

core/lib/Drupal/Core/Field/PluginSettingsBase.php, line 153

Class

PluginSettingsBase
Base class for the Field API plugins.

Namespace

Drupal\Core\Field

Code

public function onDependencyRemoval(array $dependencies) {
    $changed = FALSE;
    if (!empty($this->thirdPartySettings) && !empty($dependencies['module'])) {
        $old_count = count($this->thirdPartySettings);
        $this->thirdPartySettings = array_diff_key($this->thirdPartySettings, array_flip($dependencies['module']));
        $changed = $old_count != count($this->thirdPartySettings);
    }
    return $changed;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal