You are here

rest.post_update.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/rest/rest.post_update.php

Post update functions for Rest.

File

core/modules/rest/rest.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for Rest.
 */

/**
 * Implements hook_removed_post_updates().
 */
function rest_removed_post_updates() {
  return [
    'rest_post_update_create_rest_resource_config_entities' => '9.0.0',
    'rest_post_update_resource_granularity' => '9.0.0',
    'rest_post_update_161923' => '9.0.0',
  ];
}

/**
 * Remove obsolete rest.settings configuration.
 */
function rest_post_update_delete_settings() {
  \Drupal::configFactory()
    ->getEditable('rest.settings')
    ->delete();
}

Functions

Namesort descending Description
rest_post_update_delete_settings Remove obsolete rest.settings configuration.
rest_removed_post_updates Implements hook_removed_post_updates().