diff --git a/src/Form/AmpSettingsForm.php b/src/Form/AmpSettingsForm.php index 8dda7ee..e26fb3c 100644 --- a/src/Form/AmpSettingsForm.php +++ b/src/Form/AmpSettingsForm.php @@ -128,18 +128,18 @@ class AmpSettingsForm extends ConfigFormBase { $node_types = node_type_get_names(); if (\Drupal::moduleHandler()->moduleExists('field_ui')) { - $form['amp_content_amp_status'] = array( + $form['amp_content_amp_status'] = [ '#title' => $this->t('AMP Status by Content Type'), '#theme' => 'item_list', '#items' => $this->entityTypeInfo->getFormattedAmpEnabledTypes(), - ); + ]; } else { - $form['amp_content_amp_status'] = array( + $form['amp_content_amp_status'] = [ '#type' => 'item', '#title' => $this->t('AMP Status by Content Type'), - '#markup' => $this->t('(In order to enabled and disable AMP content types in the UI, the Field UI module must be enabled.)'), - ); + '#markup' => $this->t('(In order to enable and disable AMP content types in the UI, the Field UI module must be enabled.)'), + ]; } $amptheme_config = $this->config('amp.theme');