function ConfigEntityBase::enable

Attributes

#[ActionMethod(adminLabel: new TranslatableMarkup('Enable'), pluralize: FALSE)]

Return value

$this

Overrides ConfigEntityInterface::enable

File

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

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.