rest.post_update.php

Same filename and directory in other branches
  1. 8.9.x core/modules/rest/rest.post_update.php
  2. 10 core/modules/rest/rest.post_update.php
  3. 11.x 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

Title Deprecated Summary
rest_post_update_delete_settings Remove obsolete rest.settings configuration.
rest_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.