Skip to content
Snippets Groups Projects

fix: micro site menu language

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -54,6 +54,7 @@ function micro_menu_site_insert(EntityInterface $entity) {
'description' => t('The menu for the site @label (id: @id)', ['@label' => $entity->label(), '@id' => $entity->id()]),
'locked' => TRUE,
'third_party_settings' => ['micro_menu' => ['site_id' => $entity->id()]],
'langcode' => $entity->language()->getId(),
])->save();
$menu = Menu::load('site-' . $entity->id());
Loading