8.3.x ConfigEntityBase.php public ConfigEntityBase::setStatus($status)
8.0.x ConfigEntityBase.php public ConfigEntityBase::setStatus($status)
8.1.x ConfigEntityBase.php public ConfigEntityBase::setStatus($status)
8.2.x ConfigEntityBase.php public ConfigEntityBase::setStatus($status)
8.4.x ConfigEntityBase.php public ConfigEntityBase::setStatus($status)

Sets the status of the configuration entity.

Parameters

bool $status: The status of the configuration entity.

Return value

$this

Overrides ConfigEntityInterface::setStatus

2 calls to ConfigEntityBase::setStatus()
ConfigEntityBase::disable in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Disables the configuration entity.
ConfigEntityBase::enable in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Enables the configuration entity.

File

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

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function setStatus($status) {
  $this->status = (bool) $status;
  return $this;
}