public function CourseOutlinePluginManager::__construct in Course 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/CourseOutlinePluginManager.php \Drupal\course\Plugin\CourseOutlinePluginManager::__construct()
- 3.x src/Plugin/CourseOutlinePluginManager.php \Drupal\course\Plugin\CourseOutlinePluginManager::__construct()
Constructs a new CourseObjectAccessManager object.
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/ CourseOutlinePluginManager.php, line 27
Class
- CourseOutlinePluginManager
- Provides the Course object access plugin manager.
Namespace
Drupal\course\PluginCode
public function __construct(Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/course', $namespaces, $module_handler, CourseOutlineInterface::class, CourseOutline::class);
$this
->alterInfo('course_outline_info');
$this
->setCacheBackend($cache_backend, 'course_outline_plugins');
}