You are here

public function TokenSettingTypeBase::setTokenService in UI Patterns Settings 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/TokenSettingTypeBase.php \Drupal\ui_patterns_settings\Plugin\TokenSettingTypeBase::setTokenService()

Sets the token service.

Parameters

\Drupal\Core\Utility\Token $token_service: The token service.

Return value

self The token service.

File

src/Plugin/TokenSettingTypeBase.php, line 101

Class

TokenSettingTypeBase

Namespace

Drupal\ui_patterns_settings\Plugin

Code

public function setTokenService(Token $token_service) {
  $this->tokenService = $token_service;
  return $this;
}