diff -u b/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module --- b/core/modules/content_translation/content_translation.module +++ b/core/modules/content_translation/content_translation.module @@ -5,6 +5,7 @@ * Allows entities to be translated into different languages. */ +use Drupal\Core\Url; use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\ContentEntityFormInterface; use Drupal\Core\Entity\ContentEntityInterface; @@ -587,11 +588,11 @@ $url = '/'; // Create links for the '' path. if ($is_front) { - $options = array('language' => $language, 'absolute' => TRUE); + $options = ['language' : $language, 'absolute' : TRUE]; if ($is_https) { $options['https'] = TRUE; } - $url = \Drupal\Core\Url::fromRoute('', array(), $options)->toString(); + $url = \Drupal\Core\Url::fromRoute('', [], $options)->toString(); } // Create links for the entity path. else {