8.3.x ConfigEntityBase.php public ConfigEntityBase::enable()
8.0.x ConfigEntityBase.php public ConfigEntityBase::enable()
8.1.x ConfigEntityBase.php public ConfigEntityBase::enable()
8.2.x ConfigEntityBase.php public ConfigEntityBase::enable()
8.4.x ConfigEntityBase.php public ConfigEntityBase::enable()

Enables the configuration entity.

Return value

$this

Overrides ConfigEntityInterface::enable

File

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

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function enable() {
  return $this->setStatus(TRUE);
}