public function TokensReplacementEvent::getTokens in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/core_event_dispatcher/src/Event/Token/TokensReplacementEvent.php \Drupal\core_event_dispatcher\Event\Token\TokensReplacementEvent::getTokens()
Getter.
An array of tokens to be replaced. The keys are the machine-readable token names, and the values are the raw [type:token] strings that appeared in the original text.
Return value
array The tokens.
File
- modules/
core_event_dispatcher/ src/ Event/ Token/ TokensReplacementEvent.php, line 127
Class
- TokensReplacementEvent
- Class TokensProvideEvent.
Namespace
Drupal\core_event_dispatcher\Event\TokenCode
public function getTokens() : array {
return $this->tokens;
}