path_alias.post_update.php

Same filename and directory in other branches
  1. 11.x core/modules/path_alias/path_alias.post_update.php
  2. 10 core/modules/path_alias/path_alias.post_update.php

Post update functions for Path Alias.

File

core/modules/path_alias/path_alias.post_update.php

View source
<?php


/**
 * @file
 * Post update functions for Path Alias.
 */


/**
 * Implements hook_removed_post_updates().
 */
function path_alias_removed_post_updates() : array {
  return [
    'path_alias_post_update_drop_path_alias_status_index' => '11.0.0',
  ];
}

/**
 * Update the path_alias_revision indices.
 */
function path_alias_post_update_update_path_alias_revision_indexes() : void {
  /** @var \Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface $update_manager */
  $update_manager = \Drupal::service('entity.definition_update_manager');
  $entity_type = $update_manager->getEntityType('path_alias');
  $update_manager->updateEntityType($entity_type);
}

Functions

Title Deprecated Summary
path_alias_post_update_update_path_alias_revision_indexes Update the path_alias_revision indices.
path_alias_removed_post_updates Implements hook_removed_post_updates().

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