function system_update_8803

Install the 'path_alias' entity type.

File

core/modules/system/system.install, line 2665

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.');
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.