function 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
Class
- CategorizingPluginManager
- Class that allows testing the trait.
Namespace
Drupal\Tests\Core\PluginCode
public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.