public function QuizQuestionPluginManager::__construct in Quiz 8.5
Same name and namespace in other branches
- 8.6 src/Plugin/QuizQuestionPluginManager.php \Drupal\quiz\Plugin\QuizQuestionPluginManager::__construct()
- 6.x src/Plugin/QuizQuestionPluginManager.php \Drupal\quiz\Plugin\QuizQuestionPluginManager::__construct()
Constructs a new QuizQuestionPluginManager 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/ QuizQuestionPluginManager.php, line 27
Class
- QuizQuestionPluginManager
- Provides the Quiz Question plugin manager.
Namespace
Drupal\quiz\PluginCode
public function __construct(Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/quiz', $namespaces, $module_handler, QuizQuestionInterface::class, QuizQuestion::class);
$this
->alterInfo('quiz_question_info');
$this
->setCacheBackend($cache_backend, 'quiz_question_plugins');
}