function restui_post_update_resource_granularity in REST UI 8
Simplify method-granularity REST resource config to resource-granularity.
Re-runs the REST module's update path, because the REST UI module only allowed creating 'method' granularity resources until version 1.14.
See also
https://www.drupal.org/node/2869443
https://www.drupal.org/node/2721595
File
- ./
restui.post_update.php, line 17 - Post update functions for REST UI.
Code
function restui_post_update_resource_granularity() {
require_once \Drupal::root() . '/core/modules/rest/rest.post_update.php';
rest_post_update_resource_granularity();
}