Same filename and directory in other branches
- 8.x-2.x src/FieldStateManager.php
Namespace
Drupal\field_states_ui
File
-
src/FieldStateManager.php
View source
<?php
namespace Drupal\field_states_ui;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Plugin\DefaultPluginManager;
class FieldStateManager extends DefaultPluginManager {
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
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');
}
}
Classes