src/TokenResolver.php
protected function getToken() {
    // Iterate over the supported tokens to find the token in the tokenized
    // path.
    foreach (array_keys($this->supportedTokens) as $token_name) {
      if (strpos($this->path, $token_name) !== FALSE) {
        return $token_name;
      }
    }
    return NULL;
  }
protected function getToken() {
    // Iterate over the supported tokens to find the token in the tokenized
    // path.
    foreach (array_keys($this->supportedTokens) as $token_name) {
      if (strpos($this->path, $token_name) !== FALSE) {
        return $token_name;
      }
    }
    return NULL;
  }
protected function getToken ( ) { // Iterate over the supported tokens to find the token in the tokenized // path. foreach ( array_keys ( $ this -> supportedTokens ) as $ token_name ) { if ( strpos ( $ this -> path , $ token_name ) !== FALSE ) { return $ token_name ; } } return NULL ; }
Checks if the current tokenized path contains a known token.

@return string
The token found. NULL otherwise.
Checks if the current tokenized path contains a known token .