comparison core/modules/language/tests/src/Functional/LanguageNegotiationContentEntityTest.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 af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
88 // where the language-content-entity is turned off. 88 // where the language-content-entity is turned off.
89 $config = $this->config('language.types'); 89 $config = $this->config('language.types');
90 $config->set('configurable', [LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT]); 90 $config->set('configurable', [LanguageInterface::TYPE_INTERFACE, LanguageInterface::TYPE_CONTENT]);
91 $config->set('negotiation.language_content.enabled', [ 91 $config->set('negotiation.language_content.enabled', [
92 LanguageNegotiationUrl::METHOD_ID => 0, 92 LanguageNegotiationUrl::METHOD_ID => 0,
93 LanguageNegotiationContentEntity::METHOD_ID => 1 93 LanguageNegotiationContentEntity::METHOD_ID => 1,
94 ]); 94 ]);
95 $config->save(); 95 $config->save();
96 96
97 // In order to reflect the changes for a multilingual site in the container 97 // In order to reflect the changes for a multilingual site in the container
98 // we have to rebuild it. 98 // we have to rebuild it.
103 103
104 // Define the method language-content-entity with a higher priority than 104 // Define the method language-content-entity with a higher priority than
105 // language-url. 105 // language-url.
106 $config->set('negotiation.language_content.enabled', [ 106 $config->set('negotiation.language_content.enabled', [
107 LanguageNegotiationContentEntity::METHOD_ID => 0, 107 LanguageNegotiationContentEntity::METHOD_ID => 0,
108 LanguageNegotiationUrl::METHOD_ID => 1 108 LanguageNegotiationUrl::METHOD_ID => 1,
109 ]); 109 ]);
110 $config->save(); 110 $config->save();
111 111
112 // In order to reflect the changes for a multilingual site in the container 112 // In order to reflect the changes for a multilingual site in the container
113 // we have to rebuild it. 113 // we have to rebuild it.