diff --git a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php index 039523c..09cd564 100644 --- a/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php +++ b/core/modules/views_ui/src/Form/Ajax/RearrangeFilter.php @@ -127,7 +127,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { $form['remove_groups'][$id] = array(); // to prevent a notice if ($id != 1) { - $form['remove_groups'][$id] = [ + $form['remove_groups'][$id] = array( '#type' => 'submit', '#value' => $this->t('Remove group @group', array('@group' => $id)), '#id' => "views-remove-group-$id", @@ -136,7 +136,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ), '#group' => $id, '#ajax' => ['url' => NULL], - ]; + ); } $group_options[$id] = $id == 1 ? $this->t('Default group') : $this->t('Group @group', array('@group' => $id)); $form['#group_renders'][$id] = array(); @@ -205,20 +205,19 @@ public function buildForm(array $form, FormStateInterface $form_state) { '#title_display' => 'invisible', '#type' => 'checkbox', '#id' => 'views-removed-' . $id, - '#attributes' => ['class' => ['views-remove-checkbox']], + '#attributes' => array('class' => array('views-remove-checkbox')), '#default_value' => 0, ); } $view->getStandardButtons($form, $form_state, 'views_ui_rearrange_filter_form'); - - $form['actions']['add_group'] = [ + $form['actions']['add_group'] = array( '#type' => 'submit', '#value' => $this->t('Create new filter group'), '#id' => 'views-add-group', '#group' => 'add', '#ajax' => ['url' => NULL], - ]; + ); return $form; } diff --git a/core/modules/views_ui/src/Tests/FilterUITest.php b/core/modules/views_ui/src/Tests/FilterUITest.php index 506658c..046b166 100644 --- a/core/modules/views_ui/src/Tests/FilterUITest.php +++ b/core/modules/views_ui/src/Tests/FilterUITest.php @@ -78,7 +78,7 @@ public function testFiltersUI() { $this->drupalGet('admin/structure/views/nojs/rearrange-filter/test_filter_groups/page'); $this->assertNoRaw('Group 3', 'Group 3 has not been added yet.'); - // Create 2 new groups. + // Create 2 new groups. $this->drupalPostForm(NULL, [], t('Create new filter group')); $this->drupalPostForm(NULL, [], t('Create new filter group'));