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

Breadcrumb

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

function ConfigEntityBase::onDependencyRemoval

Overrides ConfigEntityInterface::onDependencyRemoval

11 calls to ConfigEntityBase::onDependencyRemoval()
EntityDisplayBase::onDependencyRemoval in core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Informs the entity that entities it depends on will be deleted.
FieldConfigBase::onDependencyRemoval in core/lib/Drupal/Core/Field/FieldConfigBase.php
Informs the entity that entities it depends on will be deleted.
FieldConfigBase::onDependencyRemoval in core/lib/Drupal/Core/Field/FieldConfigBase.php
Informs the entity that entities it depends on will be deleted.
FilterFormat::onDependencyRemoval in core/modules/filter/src/Entity/FilterFormat.php
Informs the entity that entities it depends on will be deleted.
FilterFormat::onDependencyRemoval in core/modules/filter/src/Entity/FilterFormat.php
Informs the entity that entities it depends on will be deleted.

... See full list

7 methods override ConfigEntityBase::onDependencyRemoval()
EntityDisplayBase::onDependencyRemoval in core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Informs the entity that entities it depends on will be deleted.
FieldConfigBase::onDependencyRemoval in core/lib/Drupal/Core/Field/FieldConfigBase.php
Informs the entity that entities it depends on will be deleted.
FilterFormat::onDependencyRemoval in core/modules/filter/src/Entity/FilterFormat.php
Informs the entity that entities it depends on will be deleted.
RestResourceConfig::onDependencyRemoval in core/modules/rest/src/Entity/RestResourceConfig.php
Informs the entity that entities it depends on will be deleted.
Role::onDependencyRemoval in core/modules/user/src/Entity/Role.php
Informs the entity that entities it depends on will be deleted.

... See full list

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 475

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

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

API Navigation

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