You are here

function system_update_8803 in Drupal 8

Install the 'path_alias' entity type.

File

core/modules/system/system.install, line 2665
Install, update and uninstall functions for the system module.

Code

function system_update_8803() {

  // Enable the Path Alias module if needed.
  if (!\Drupal::moduleHandler()
    ->moduleExists('path_alias')) {
    \Drupal::service('module_installer')
      ->install([
      'path_alias',
    ], FALSE);
    return t('The "path_alias" entity type has been installed.');
  }
}