public function BundlePluginTestManager::__construct in Entity API 8
Constructs a new BundlePluginTestManager 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: The cache backend.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- tests/
modules/ entity_module_bundle_plugin_test/ src/ BundlePluginTestManager.php, line 28
Class
- BundlePluginTestManager
- Manages discovery and instantiation of BundlePluginTest plugins.
Namespace
Drupal\entity_module_bundle_plugin_testCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/BundlePluginTest', $namespaces, $module_handler, 'Drupal\\entity_module_bundle_plugin_test\\Plugin\\BundlePluginTest\\BundlePluginTestInterface', 'Drupal\\entity_module_bundle_plugin_test\\Annotation\\BundlePluginTest');
$this
->alterInfo('bundle_plugin_test_info');
$this
->setCacheBackend($cache_backend, 'bundle_plugin_test_plugins');
}