Same name in other branches
- 8.x-2.x src/FieldStateManager.php \Drupal\field_states_ui\FieldStateManager
Manages field state plugins.
Hierarchy
- class \Drupal\field_states_ui\FieldStateManager extends \Drupal\Core\Plugin\DefaultPluginManager
Expanded class hierarchy of FieldStateManager
See also
hook_field_state_info_alter()
\Drupal\field_states_ui\Annotation\FieldState
\Drupal\field_states_ui\FieldStateInterface
\Drupal\field_states_ui\FieldStateBase
plugin_api
1 file declares its use of FieldStateManager
- field_states_ui.form.inc in ./
field_states_ui.form.inc - Alter form functionality Field States UI.
1 string reference to 'FieldStateManager'
1 service uses FieldStateManager
File
-
src/
FieldStateManager.php, line 18
Namespace
Drupal\field_states_uiView source
class FieldStateManager extends DefaultPluginManager {
/**
* Constructs a new FieldStateManager.
*
* @param \Traversable $namespaces
* An object that implements \Traversable which contains the root paths
* keyed by the corresponding namespace to look for plugin implementations.
* @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
* Cache backend instance to use.
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
* The module handler.
*/
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');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FieldStateManager::__construct | public | function | Constructs a new FieldStateManager. |