protected function InstagramApiTrait::token in Instagram Feeds 8
Returns the token service.
Return value
\Drupal\Core\Utility\Token The token service.
File
- src/
InstagramApiTrait.php, line 99
Class
- InstagramApiTrait
- Instagram API Trait.
Namespace
Drupal\instagram_feedsCode
protected function token() : Token {
if (!isset($this->token)) {
$this->token = \Drupal::token();
}
return $this->token;
}