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

Breadcrumb

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

function RestResourceConfig::onDependencyRemoval

Overrides ConfigEntityBase::onDependencyRemoval

File

core/modules/rest/src/Entity/RestResourceConfig.php, line 229

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

public function onDependencyRemoval(array $dependencies) {
    $parent = parent::onDependencyRemoval($dependencies);
    // If the dependency problems are not marked as fixed at this point they
    // should be related to the resource plugin and the config entity should
    // be deleted.
    $changed = $this->getRestResourceDependencies()
        ->onDependencyRemoval($this, $dependencies);
    return $parent || $changed;
}
RSS feed
Powered by Drupal