function rest_update_8203

Enable BC for EntityResource: continue to use permissions.

File

core/modules/rest/rest.install, line 64

Code

function rest_update_8203() {
    $config_factory = \Drupal::configFactory();
    $rest_settings = $config_factory->getEditable('rest.settings');
    $rest_settings->set('bc_entity_resource_permissions', TRUE)
        ->save(TRUE);
}

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