Same name in other branches
  1. 8.x-1.x src/FieldStateManager.php \Drupal\field_states_ui\FieldStateManager::__construct()

Constructs a new FieldStateManager.

Paramètres

\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.

\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.

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

\Psr\Log\LoggerInterface $logger: The logger.

Fichier

src/FieldStateManager.php, line 48

Classe

FieldStateManager
Manages field state plugins.

Namespace

Drupal\field_states_ui

Code

public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, LoggerInterface $logger) {
    parent::__construct('Plugin/FieldState', $namespaces, $module_handler, 'Drupal\\field_states_ui\\FieldStateInterface', 'Drupal\\field_states_ui\\Annotation\\FieldState');
    $this->alterInfo('field_state_info');
    $this->setCacheBackend($cache_backend, 'field_state_plugins');
    $this->logger = $logger;
}