Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::disable()
  2. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::disable()

Disables the configuration entity.

Return value

$this

Overrides ConfigEntityInterface::disable

1 call to ConfigEntityBase::disable()
View::onDependencyRemoval in core/modules/views/src/Entity/View.php
Informs the entity that entities it depends on will be deleted.

File

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

Class

ConfigEntityBase

Namespace

Drupal\Core\Config\Entity

Code

public function disable() {
  return $this
    ->setStatus(FALSE);
}