public function FieldHandlerPluginManager::__construct in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::__construct()
- 2.1.x src/Plugin/Type/FieldHandlerPluginManager.php \Drupal\cms_content_sync\Plugin\Type\FieldHandlerPluginManager::__construct()
Constructor.
Constructs a new \Drupal\cms_content_sync\Plugin\Type\EntityHandlerPluginManager object.
Parameters
\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 to invoke the alter hook with
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ Type/ FieldHandlerPluginManager.php, line 34
Class
- FieldHandlerPluginManager
- Manages discovery and instantiation of field handler plugins.
Namespace
Drupal\cms_content_sync\Plugin\TypeCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/cms_content_sync/field_handler', $namespaces, $module_handler, 'Drupal\\cms_content_sync\\Plugin\\FieldHandlerInterface', 'Drupal\\cms_content_sync\\Annotation\\FieldHandler');
$this
->setCacheBackend($cache_backend, 'cms_content_sync_field_handler_plugins');
$this
->alterInfo('cms_content_sync_field_handler');
}