comparison core/modules/rest/rest.post_update.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
51 if (count(array_unique($format_and_auth_configuration['format'])) === 1 && count(array_unique($format_and_auth_configuration['auth'])) === 1) { 51 if (count(array_unique($format_and_auth_configuration['format'])) === 1 && count(array_unique($format_and_auth_configuration['auth'])) === 1) {
52 $first_method = array_keys($configuration)[0]; 52 $first_method = array_keys($configuration)[0];
53 $resource_config_entity->set('configuration', [ 53 $resource_config_entity->set('configuration', [
54 'methods' => array_keys($configuration), 54 'methods' => array_keys($configuration),
55 'formats' => $configuration[$first_method]['supported_formats'], 55 'formats' => $configuration[$first_method]['supported_formats'],
56 'authentication' => $configuration[$first_method]['supported_auth'] 56 'authentication' => $configuration[$first_method]['supported_auth'],
57 ]); 57 ]);
58 $resource_config_entity->set('granularity', RestResourceConfigInterface::RESOURCE_GRANULARITY); 58 $resource_config_entity->set('granularity', RestResourceConfigInterface::RESOURCE_GRANULARITY);
59 $resource_config_entity->save(); 59 $resource_config_entity->save();
60 } 60 }
61 } 61 }
62 } 62 }
63 } 63 }
64
65 /**
66 * Clear caches due to changes in route definitions.
67 */
68 function rest_post_update_161923() {
69 // Empty post-update hook.
70 }