public function CategorizingPluginManager::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php \Drupal\Tests\Core\Plugin\CategorizingPluginManager::__construct()
Replace the constructor so we can instantiate a stub.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface|\PHPUnit_Framework_MockObject_MockObject $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ CategorizingPluginManagerTraitTest.php, line 119 - Contains \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest.
Class
- CategorizingPluginManager
- Class that allows testing the trait.
Namespace
Drupal\Tests\Core\PluginCode
public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}