You are here

public function TcaSettings::setActive in Token Content Access 2.0.x

Same name and namespace in other branches
  1. 8 src/Entity/TcaSettings.php \Drupal\tca\Entity\TcaSettings::setActive()

Set the active value.

Parameters

bool $active: The active to save. FALSE (Not active), TRUE (Active).

Overrides TcaSettingsInterface::setActive

File

src/Entity/TcaSettings.php, line 89

Class

TcaSettings
Defines the TCA settings entity.

Namespace

Drupal\tca\Entity

Code

public function setActive($active) {
  if (!is_bool($active)) {
    throw new InvalidTcaSettingException('active');
  }
  $this->active = $active;
}