W3cubDocs

/Drupal 8

public function ConfigEntityBase::disable

public ConfigEntityBase::disable()

Disables the configuration entity.

Return value

$this

Overrides ConfigEntityInterface::disable

File

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

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityBase.php/function/ConfigEntityBase::disable/8.1.x