You are here

public function WrapperManager::__construct in Field Token Value 8

Same name and namespace in other branches
  1. 2.x src/WrapperManager.php \Drupal\field_token_value\WrapperManager::__construct()

Constructs a new WrapperManager instance.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.

Overrides DefaultPluginManager::__construct

File

src/WrapperManager.php, line 79
Contains \Drupal\field_token_value\WrapperManager.

Class

WrapperManager
Gathers and provides the tags that can be used to wrap field content within Field Token Value fields.

Namespace

Drupal\field_token_value

Code

public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler, CacheBackendInterface $cache_backend) {
  $this->moduleHandler = $module_handler;
  $this->themeHandler = $theme_handler;
  $this
    ->alterInfo('field_token_value_wrapper_info');
  $this
    ->setCacheBackend($cache_backend, 'field_token_value', [
    'field_token_value',
  ]);
}