function FieldTypeCategoryManager::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Field/FieldTypeCategoryManager.php \Drupal\Core\Field\FieldTypeCategoryManager::__construct()

Constructs a new FieldTypeCategoryManager.

Parameters

string $root: The app root.

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

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

Overrides DefaultPluginManager::__construct

File

core/lib/Drupal/Core/Field/FieldTypeCategoryManager.php, line 61

Class

FieldTypeCategoryManager
Defines a field type category info plugin manager.

Namespace

Drupal\Core\Field

Code

public function __construct(string $root, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend) {
    $this->moduleHandler = $module_handler;
    $this->alterInfo('field_type_category_info');
    $this->setCacheBackend($cache_backend, 'field_type_category_info_plugins');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.