public function __construct(array
$configuration,
$plugin_id,
$plugin_definition, MigrationInterface
$migration, EventDispatcherInterface
$event_dispatcher, MigrationPluginManagerInterface
$migration_plugin_manager = NULL
) { parent::
__construct($configuration,
$plugin_id,
$plugin_definition);
$this->migration =
$migration;
$this->eventDispatcher =
$event_dispatcher;
$this->message =
new MigrateMessage();
if (!
isset($this->database
)) { $this->database = \Drupal::
database();
} // Default generated table names, limited to 63 characters.
$machine_name =
str_replace(':', '__',
$this->migration->
id());
$prefix_length =
strlen($this->database->
getPrefix());
$this->mapTableName = 'migrate_map_' .
mb_strtolower($machine_name);
$this->mapTableName =
mb_substr($this->mapTableName, 0, 63 -
$prefix_length);
$this->messageTableName = 'migrate_message_' .
mb_strtolower($machine_name);