diff --git a/environment_indicator.module b/environment_indicator.module index d0c036b..e8f459b 100644 --- a/environment_indicator.module +++ b/environment_indicator.module @@ -110,8 +110,7 @@ function environment_indicator_theme($existing, $type, $theme, $path) { * @param array $variables * An associative array containing: * - element: An associative array containing the properties of the element. - * Properties used: #title, #value, #options, #description, #required, - * #attributes. + * Properties used: #title, #value, #description, #required, #attributes. */ function template_preprocess_environment_indicator(&$variables) { $element = $variables['element']; @@ -191,14 +190,12 @@ function environment_indicator_toolbar() { '#access' => $permission, '#title' => $title, '#url' => \Drupal\Core\Url::fromRoute('environment_indicator.settings'), - '#options' => [ - 'attributes' => [ - 'title' => t('Environments'), - 'class' => [ - 'toolbar-icon', - 'toolbar-item', - 'toolbar-icon-environment', - ], + '#attributes' => [ + 'title' => t('Environments'), + 'class' => [ + 'toolbar-icon', + 'toolbar-item', + 'toolbar-icon-environment', ], ], ], @@ -211,11 +208,9 @@ function environment_indicator_toolbar() { '#title' => t('Configure'), '#url' => \Drupal\Core\Url::fromRoute('environment_indicator.settings'), '#weight' => 100, - '#options' => [ - 'attributes' => [ - 'title' => t('Environment switcher configuration'), - 'class' => ['edit-environments'], - ], + '#attributes' => [ + 'title' => t('Environment switcher configuration'), + 'class' => ['edit-environments'], ], ], ],