function StubSourcePlugin::setModuleHandler

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::setModuleHandler()
  2. 8.9.x core/modules/migrate/tests/src/Unit/MigrateSourceTest.php \Drupal\Tests\migrate\Unit\StubSourcePlugin::setModuleHandler()
  3. 11.x core/modules/migrate/tests/src/Unit/StubSourcePlugin.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 464

Class

StubSourcePlugin
Stubbed source plugin for testing base class implementations.

Namespace

Drupal\Tests\migrate\Unit

Code

public function setModuleHandler(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.