diff -u b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/I18nMenuLink.php b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/I18nMenuLink.php --- b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/I18nMenuLink.php +++ b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/I18nMenuLink.php @@ -42,7 +42,9 @@ */ protected function values() { $values = []; - $result = $this->prepareQuery()->execute()->fetchAll(); + $result = $this->prepareQuery(); + $result->execute(); + $result->fetchAll(); $cnt = count($result); for ($i = 0; $i < $cnt; $i++) { if (isset($result[$i])) { @@ -94,14 +96,14 @@ * {@inheritdoc} */ public function fields() { - return array( + return [ 'mlid' => t('The menu link ID.'), 'language' => $this->t('Language for this menu.'), 'title' => $this->t('Menu link title.'), 'description' => $this->t('Menu link description.'), 'link_path' => t('The Drupal path or external path this link points to.'), 'options' => t('A serialized array of options to set on the URL, such as a query string or HTML attributes.'), - ); + ]; } /**