Skip to content

Commit

Permalink
Merge pull request #68 from openeuropa/OPENEUROPA-1922
Browse files Browse the repository at this point in the history
OPENEUROPA-1922: Do not modify configuration in hook_install() if configuration is in syncing mode.
  • Loading branch information
ademarco authored May 20, 2019
2 parents 0aaf1a9 + d03afb5 commit bf3f914
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ use Drupal\language_selection_page\Plugin\LanguageNegotiation\LanguageNegotiatio
* Implements hook_install().
*/
function oe_multilingual_selection_page_install(): void {
if (\Drupal::isConfigSyncing()) {
// If config is syncing, we do nothing here.
return;
}

// Configure selection page language negotiation method.
\Drupal::configFactory()
->getEditable('language_selection_page.negotiation')
Expand Down

0 comments on commit bf3f914

Please sign in to comment.