public function TcaSettings::setToken in Token Content Access 8
Same name and namespace in other branches
- 2.0.x src/Entity/TcaSettings.php \Drupal\tca\Entity\TcaSettings::setToken()
Set the token value.
Parameters
string $token: The token is 64 length string.
Overrides TcaSettingsInterface::setToken
File
- src/
Entity/ TcaSettings.php, line 106
Class
- TcaSettings
- Defines the TCA settings entity.
Namespace
Drupal\tca\EntityCode
public function setToken($token) {
if (!is_null($token) && (!is_string($token) || strlen($token) != 64)) {
throw new InvalidTcaSettingException('token');
}
$this->token = $token;
}