ConfigEntityBase::setStatus

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

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

1
2
3
4
public function setStatus($status) {
  $this->status = (bool) $status;
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.