protected function TokenReplacer::getOptions in Advanced Entity Tokens 2.x
Fetches the options currently in use by the service.
Return value
array The options.
Throws
\Exception If the data is missing.
See also
\Drupal\Core\Utility\Token::replace()
1 call to TokenReplacer::getOptions()
- TokenReplacer::getEntityAttributeReplacements in src/
TokenReplacer.php - Fetches replacements for entity attributes (e.g. "[aet:node:999:changed]").
File
- src/
TokenReplacer.php, line 154
Class
- TokenReplacer
- Class TokenReplacer.
Namespace
Drupal\aetCode
protected function getOptions() {
if (!isset($this->options)) {
throw new \Exception('This operation requires that the service be set with options.');
}
return $this->options;
}