public function StubSourcePlugin::setModuleHandler in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::setModuleHandler()
- 10 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::setModuleHandler()
Helper for setting internal module handler implementation.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- core/
modules/ migrate/ tests/ src/ Unit/ MigrateSourceTest.php, line 468 - Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.
Class
- StubSourcePlugin
- Stubbed source plugin for testing base class implementations.
Namespace
Drupal\Tests\migrate\UnitCode
public function setModuleHandler(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}