diff --git a/core/modules/contact/src/MessageForm.php b/core/modules/contact/src/MessageForm.php index 774de46..edc7bd9 100644 --- a/core/modules/contact/src/MessageForm.php +++ b/core/modules/contact/src/MessageForm.php @@ -159,7 +159,7 @@ public function actions(array $form, FormStateInterface $form_state) { '#type' => 'submit', '#value' => $this->t('Preview'), '#validate' => array('::validate'), - '#submit' => array('::preview'), + '#submit' => ['::preview'], ); return $elements; } diff --git a/core/modules/language/src/Form/LanguageAddForm.php b/core/modules/language/src/Form/LanguageAddForm.php index a719828..65485b3 100644 --- a/core/modules/language/src/Form/LanguageAddForm.php +++ b/core/modules/language/src/Form/LanguageAddForm.php @@ -53,7 +53,7 @@ public function form(array $form, FormStateInterface $form_state) { ), ), '#validate' => array('::validatePredefined'), - '#submit' => array('::save'), + '#submit' => ['::save'], ); $custom_language_states_conditions = array( @@ -76,7 +76,7 @@ public function form(array $form, FormStateInterface $form_state) { '#type' => 'submit', '#value' => $this->t('Add custom language'), '#validate' => array('::validateCustom'), - '#submit' => array('::save'), + '#submit' => ['::save'], ); return $form; diff --git a/core/modules/views_ui/src/ViewAddForm.php b/core/modules/views_ui/src/ViewAddForm.php index 6d292c5..36f3c87 100644 --- a/core/modules/views_ui/src/ViewAddForm.php +++ b/core/modules/views_ui/src/ViewAddForm.php @@ -151,7 +151,7 @@ protected function actions(array $form, FormStateInterface $form_state) { $actions['submit'] = array( '#type' => 'submit', '#value' => $this->t('Save and edit'), - '#validate' => array('::validate'), + '#validate' => ['::validate'], ); $actions['cancel'] = array( '#type' => 'submit',