Loading src/Form/FloodUnblockAdminForm.php +4 −2 Original line number Diff line number Diff line Loading @@ -212,14 +212,16 @@ class FloodUnblockAdminForm extends FormBase { '#empty' => $this->t('There are no failed logins at this time.'), ]; $form['actions'] = ['#type' => 'actions']; // Provides the remove submit button. $form['remove'] = [ $form['actions']['remove'] = [ '#type' => 'submit', '#value' => $this->t('Remove selected items from the flood table'), '#validate' => ['::validateRemoveItems'], ]; if (count($options) == 0) { $form['remove']['#disabled'] = TRUE; $form['actions']['remove']['#disabled'] = TRUE; } // Provides the pager element. Loading Loading
src/Form/FloodUnblockAdminForm.php +4 −2 Original line number Diff line number Diff line Loading @@ -212,14 +212,16 @@ class FloodUnblockAdminForm extends FormBase { '#empty' => $this->t('There are no failed logins at this time.'), ]; $form['actions'] = ['#type' => 'actions']; // Provides the remove submit button. $form['remove'] = [ $form['actions']['remove'] = [ '#type' => 'submit', '#value' => $this->t('Remove selected items from the flood table'), '#validate' => ['::validateRemoveItems'], ]; if (count($options) == 0) { $form['remove']['#disabled'] = TRUE; $form['actions']['remove']['#disabled'] = TRUE; } // Provides the pager element. Loading