You are here

public function TokensReplacementEvent::getTokens in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 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\Token

Code

public function getTokens() : array {
  return $this->tokens;
}