class MigratePrepareRowModuleHandler implements ModuleHandlerInterface (View source)

Decorates the module handler to dispatch a Drush event on each source row.

Injected into the migration's source plugin for the duration of the Drush process. Replaces the former compile-time hook registration (MigrateRunnerServiceProvider), which broke once Drupal 11.3 started persisting hook lists in shared keyvalue storage: containers built by web requests disagreed with containers built by Drush, causing either an ArgumentCountError on web requests or silent data loss with migrate:import --delete.

Methods

__construct(ModuleHandlerInterface $decorated, EventDispatcherInterface $eventDispatcher)

No description

invokeAll($hook, array $args = [])

No description

load($name)

No description

loadAll()

No description

isLoaded()

No description

reload()

No description

getModuleList()

No description

getModule($name)

No description

setModuleList(array $module_list = [])

No description

addModule($name, $path)

No description

addProfile($name, $path)

No description

buildModuleDependencies(array $modules)

No description

moduleExists($module)

No description

loadAllIncludes($type, $name = null)

No description

loadInclude($module, $type, $name = null)

No description

getHookInfo()

No description

writeCache()

No description

resetImplementations()

No description

bool
hasImplementations(string $hook, $modules = null)

No description

void
invokeAllWith(string $hook, callable $callback)

No description

invoke($module, $hook, array $args = [])

No description

invokeDeprecated($description, $module, $hook, array $args = [])

No description

invokeAllDeprecated($description, $hook, array $args = [])

No description

alter($type, $data, $context1 = null, $context2 = null)

No description

alterDeprecated($description, $type, $data, $context1 = null, $context2 = null)

No description

getModuleDirectories()

No description

getName($module)

No description

destruct()

Required by Drupal < 11, where the interface extends DestructableInterface.

Details

__construct(ModuleHandlerInterface $decorated, EventDispatcherInterface $eventDispatcher)

No description

Parameters

ModuleHandlerInterface $decorated
EventDispatcherInterface $eventDispatcher

invokeAll($hook, array $args = [])

No description

Parameters

$hook
array $args

load($name)

No description

Parameters

$name

loadAll()

No description

isLoaded()

No description

reload()

No description

getModuleList()

No description

getModule($name)

No description

Parameters

$name

setModuleList(array $module_list = [])

No description

Parameters

array $module_list

addModule($name, $path)

No description

Parameters

$name
$path

addProfile($name, $path)

No description

Parameters

$name
$path

buildModuleDependencies(array $modules)

No description

Parameters

array $modules

moduleExists($module)

No description

Parameters

$module

loadAllIncludes($type, $name = null)

No description

Parameters

$type
$name

loadInclude($module, $type, $name = null)

No description

Parameters

$module
$type
$name

getHookInfo()

No description

writeCache()

No description

resetImplementations()

No description

bool hasImplementations(string $hook, $modules = null)

No description

Parameters

string $hook
$modules

Return Value

bool

void invokeAllWith(string $hook, callable $callback)

No description

Parameters

string $hook
callable $callback

Return Value

void

invoke($module, $hook, array $args = [])

No description

Parameters

$module
$hook
array $args

invokeDeprecated($description, $module, $hook, array $args = [])

No description

Parameters

$description
$module
$hook
array $args

invokeAllDeprecated($description, $hook, array $args = [])

No description

Parameters

$description
$hook
array $args

alter($type, $data, $context1 = null, $context2 = null)

No description

Parameters

$type
$data
$context1
$context2

alterDeprecated($description, $type, $data, $context1 = null, $context2 = null)

No description

Parameters

$description
$type
$data
$context1
$context2

getModuleDirectories()

No description

getName($module)

No description

Parameters

$module

destruct()

Required by Drupal < 11, where the interface extends DestructableInterface.