You are here

function media_migration_install in Media Migration 8

Implements hook_install().

File

./media_migration.install, line 101
Install and update hooks for Media Migration.

Code

function media_migration_install() {
  $module_handler = \Drupal::moduleHandler();
  if ($module_handler
    ->moduleExists('migrate_tools')) {
    $module_installer = \Drupal::service('module_installer');
    assert($module_installer instanceof ModuleInstallerInterface);
    $module_installer
      ->install([
      'media_migration_tools',
    ]);
  }
}