public function AliasTypeManager::__construct in View Mode Page 4.0.x
Same name and namespace in other branches
- 8.3 src/AliasTypeManager.php \Drupal\view_mode_page\AliasTypeManager::__construct()
- 3.2.x src/AliasTypeManager.php \Drupal\view_mode_page\AliasTypeManager::__construct()
Constructs a new AliasType manager instance.
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/
AliasTypeManager.php, line 26
Class
- AliasTypeManager
- Manages view_mode_page alias type plugins.
Namespace
Drupal\view_mode_pageCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/view_mode_page/AliasType', $namespaces, $module_handler, 'Drupal\\view_mode_page\\AliasTypeInterface', 'Drupal\\view_mode_page\\Annotation\\AliasType');
$this
->setCacheBackend($cache_backend, 'view_mode_page_alias_types');
}