Issue #2308745 by Alumei, dawehner, Wim Leers, larowlan, Arla, alexpott, g.oechsler, R.Muilwijk, Berdir, catch, klausi, clemens.tolboom, MattA, Crell: Remove rest.settings.yml, use rest_resource config entities
2016-06-19 13:41:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Post update functions for Rest.
|
|
|
|
*/
|
|
|
|
|
SA-CORE-2019-003 by samuel.mortenson, Berdir, pwolanin, dawehner, cashwilliams, Wim Leers, xjm, larowlan, alexpott, plach, damiankloip, tstoeckler, tedbow, DamienMcKenna, effulgentsia, RobLoach, gabesullice, drumm, heshanlk, dsnopek, fago, miro_dietiker, truls1502
2019-02-20 18:36:56 +00:00
|
|
|
/**
|
2020-03-11 20:58:38 +00:00
|
|
|
* Implements hook_removed_post_updates().
|
SA-CORE-2019-003 by samuel.mortenson, Berdir, pwolanin, dawehner, cashwilliams, Wim Leers, xjm, larowlan, alexpott, plach, damiankloip, tstoeckler, tedbow, DamienMcKenna, effulgentsia, RobLoach, gabesullice, drumm, heshanlk, dsnopek, fago, miro_dietiker, truls1502
2019-02-20 18:36:56 +00:00
|
|
|
*/
|
2020-03-11 20:58:38 +00:00
|
|
|
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',
|
|
|
|
];
|
SA-CORE-2019-003 by samuel.mortenson, Berdir, pwolanin, dawehner, cashwilliams, Wim Leers, xjm, larowlan, alexpott, plach, damiankloip, tstoeckler, tedbow, DamienMcKenna, effulgentsia, RobLoach, gabesullice, drumm, heshanlk, dsnopek, fago, miro_dietiker, truls1502
2019-02-20 18:36:56 +00:00
|
|
|
}
|
2020-01-27 17:41:43 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove obsolete rest.settings configuration.
|
|
|
|
*/
|
|
|
|
function rest_post_update_delete_settings() {
|
|
|
|
\Drupal::configFactory()->getEditable('rest.settings')->delete();
|
|
|
|
}
|