You are here

public function Token::getToken in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/core_event_dispatcher/src/ValueObject/Token.php \Drupal\core_event_dispatcher\ValueObject\Token::getToken()

Getter.

Return value

string The token name like 'url'.

File

modules/core_event_dispatcher/src/ValueObject/Token.php, line 150

Class

Token
Token ValueObject.

Namespace

Drupal\core_event_dispatcher\ValueObject

Code

public function getToken() : string {
  return $this->token;
}