public function CourseObjectPluginManager::__construct in Course 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/CourseObjectPluginManager.php \Drupal\course\Plugin\CourseObjectPluginManager::__construct()
- 3.x src/Plugin/CourseObjectPluginManager.php \Drupal\course\Plugin\CourseObjectPluginManager::__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/ CourseObjectPluginManager.php, line 27
Class
- CourseObjectPluginManager
- 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, CourseObjectInterface::class, CourseObject::class);
$this
->alterInfo('course_object_info');
$this
->setCacheBackend($cache_backend, 'course_object_plugins');
}