public function TokenReplacer::setOptions in Advanced Entity Tokens 2.x
Associates the service with a set of options.
It's necessary to call this method before any other non-static methods.
Parameters
array $options: The options.
Return value
$this The object itself, for method chaining.
See also
\Drupal\Core\Utility\Token::replace()
File
- src/
TokenReplacer.php, line 121
Class
- TokenReplacer
- Class TokenReplacer.
Namespace
Drupal\aetCode
public function setOptions(array $options) {
$this->options = $options + self::getDefaultOptions();
return $this;
}