function dt in Migrate Tools 8.5
Same name and namespace in other branches
- 8.4 tests/src/Kernel/DrushTest.php \Drupal\Tests\migrate_tools\Kernel\dt()
Stub for dt().
Parameters
string $text: The text.
array $args: An associative array of replacement items.
Return value
string The text.
9 calls to dt()
- MigrateToolsCommands::executeMigration in src/
Commands/ MigrateToolsCommands.php - Executes a single migration.
- MigrateToolsCommands::fieldsSource in src/
Commands/ MigrateToolsCommands.php - List the fields available for mapping in a source.
- MigrateToolsCommands::import in src/
Commands/ MigrateToolsCommands.php - Perform one or more migration processes.
- MigrateToolsCommands::messages in src/
Commands/ MigrateToolsCommands.php - View any messages associated with a migration.
- MigrateToolsCommands::migrationsList in src/
Commands/ MigrateToolsCommands.php - Retrieve a list of active migrations.
File
- tests/
src/ Kernel/ DrushTest.php, line 315
Namespace
Drupal\Tests\migrate_tools\KernelCode
function dt($text, array $args = []) {
foreach ($args as $before => $after) {
$text = str_replace($before, $after, $text);
}
return $text;
}