You are here

function StubSourcePlugin::setModuleHandler in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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:

File

core/modules/migrate/tests/src/Unit/MigrateSourceTest.php, line 398
Contains \Drupal\Tests\migrate\Unit\MigrateSourceTest.

Class

StubSourcePlugin
Stubbed source plugin for testing base class implementations.

Namespace

Drupal\Tests\migrate\Unit

Code

function setModuleHandler(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
}