public function FieldFormatterConditionManager::__construct in Field Formatter Condition 8
Constructor for FieldFormatterConditionManager objects.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
CacheBackendInterface $cache_backend: Cache backend instance to use.
ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ FieldFormatterConditionManager.php, line 25
Class
- FieldFormatterConditionManager
- Provides the Field formatter condition plugin manager.
Namespace
Drupal\fico\PluginCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Field/FieldFormatter/Condition', $namespaces, $module_handler, 'Drupal\\fico\\Plugin\\FieldFormatterConditionInterface', 'Drupal\\fico\\Annotation\\FieldFormatterCondition');
$this
->alterInfo('fico_field_formatter_condition_info');
$this
->setCacheBackend($cache_backend, 'fico_field_formatter_condition_plugins');
}