function ConfigEntityBase::disable

Attributes

#[ActionMethod(adminLabel: new TranslatableMarkup('Disable'), pluralize: FALSE)]

Return value

$this

Overrides ConfigEntityInterface::disable

2 calls to ConfigEntityBase::disable()
FilterFormat::disable in core/modules/filter/src/Entity/FilterFormat.php
#[ActionMethod(adminLabel: new TranslatableMarkup('Disable'), pluralize: FALSE)]
View::onDependencyRemoval in core/modules/views/src/Entity/View.php
Informs the entity that entities it depends on will be deleted.
1 method overrides ConfigEntityBase::disable()
FilterFormat::disable in core/modules/filter/src/Entity/FilterFormat.php
#[ActionMethod(adminLabel: new TranslatableMarkup('Disable'), pluralize: FALSE)]

File

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

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.