Mercurial > hg > isophonics-drupal-site
comparison core/modules/language/src/EventSubscriber/ConfigSubscriber.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
79 * langcode are valid langcodes. If the schema definition of either | 79 * langcode are valid langcodes. If the schema definition of either |
80 * system.site:default_langcode or language.negotiation::url.prefixes changes | 80 * system.site:default_langcode or language.negotiation::url.prefixes changes |
81 * then this event must be changed to work with both the old and new schema | 81 * then this event must be changed to work with both the old and new schema |
82 * definition so this event is update safe. | 82 * definition so this event is update safe. |
83 * | 83 * |
84 * @param ConfigCrudEvent $event | 84 * @param \Drupal\Core\Config\ConfigCrudEvent $event |
85 * The configuration event. | 85 * The configuration event. |
86 */ | 86 */ |
87 public function onConfigSave(ConfigCrudEvent $event) { | 87 public function onConfigSave(ConfigCrudEvent $event) { |
88 $saved_config = $event->getConfig(); | 88 $saved_config = $event->getConfig(); |
89 if ($saved_config->getName() == 'system.site' && $event->isChanged('default_langcode')) { | 89 if ($saved_config->getName() == 'system.site' && $event->isChanged('default_langcode')) { |