public function TcaSettings::setActive in Token Content Access 8
Same name and namespace in other branches
- 2.0.x 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\EntityCode
public function setActive($active) {
if (!is_bool($active)) {
throw new InvalidTcaSettingException('active');
}
$this->active = $active;
}