Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The config API has changed, causing an undefined function error stemming from line 82 of the controller.
$config = config('rest.settings')->get('resources') ?: array();
...needs to become...
$config = \Drupal::config('rest.settings')->get('resources') ?: array();
Comment | File | Size | Author |
---|---|---|---|
#2 | update_config-2221845-2.patch | 1.38 KB | Barrett |
#1 | update_config-2221845-1.patch | 770 bytes | Barrett |
Comments
Comment #1
Barrett CreditAttribution: Barrett commentedThe attached patch resolves the reported issue.
Comment #2
Barrett CreditAttribution: Barrett commentedFound a few more instances in the controller file. Updating patch.
Comment #3
juampynr CreditAttribution: juampynr commentedWoops, already fixed at http://drupalcode.org/project/restui.git/commit/0902567. I am sorry, I did not see this issue before.
Comment #4
juampynr CreditAttribution: juampynr commented