You are here

public function TokenSettingTypeBase::setTokenService in UI Patterns Settings 8.2

Same name and namespace in other branches
  1. 8 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 96

Class

TokenSettingTypeBase
Base class for setting types with tokens.

Namespace

Drupal\ui_patterns_settings\Plugin

Code

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