You are here

public function ConfigEntityBase::setStatus in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::setStatus()

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.
1 method overrides ConfigEntityBase::setStatus()
Migration::setStatus in core/modules/migrate/src/Entity/Migration.php
Sets the status of the configuration entity.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 199
Contains \Drupal\Core\Config\Entity\ConfigEntityBase.

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

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