You are here

public function TokensReplacementEvent::getReplacementValues 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::getReplacementValues()

An associative array of replacement values.

Keyed by the raw [type:token] strings from the original text. The returned values must be either plain text strings, or an object implementing MarkupInterface if they are HTML-formatted.

Return value

string[]|\Drupal\Component\Render\MarkupInterface[] The replacement values for the token.

File

modules/core_event_dispatcher/src/Event/Token/TokensReplacementEvent.php, line 202

Class

TokensReplacementEvent
Class TokensProvideEvent.

Namespace

Drupal\core_event_dispatcher\Event\Token

Code

public function getReplacementValues() : array {
  return $this->replacementValues;
}