Mercurial > hg > isophonics-drupal-site
comparison core/modules/hal/hal.install @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
29 | 29 |
30 $hal_settings = $config_factory->getEditable('hal.settings'); | 30 $hal_settings = $config_factory->getEditable('hal.settings'); |
31 $hal_settings->set('link_domain', $link_domain); | 31 $hal_settings->set('link_domain', $link_domain); |
32 $hal_settings->save(TRUE); | 32 $hal_settings->save(TRUE); |
33 } | 33 } |
34 | |
35 /** | |
36 * Add hal.settings::bc_file_uri_as_url_normalizer configuration. | |
37 */ | |
38 function hal_update_8501() { | |
39 $config_factory = \Drupal::configFactory(); | |
40 $config_factory->getEditable('hal.settings') | |
41 ->set('bc_file_uri_as_url_normalizer', TRUE) | |
42 ->save(TRUE); | |
43 | |
44 return t('Backwards compatibility mode has been enabled for File entities\' HAL normalization of the "uri" field. Like before, it will continue to return only the absolute file URL. If you want the new behavior, which returns both the stored URI and a root-relative file URL, <a href="https://www.drupal.org/node/2925783">read the change record to learn how to opt in.</a>'); | |
45 } |