public function ConfigurationForm::addMoreSubmit in URLs queuer 8
Let the form rebuild the blacklist textfields.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Form/ ConfigurationForm.php, line 198
Class
- ConfigurationForm
- Configuration form for the Url and Path queuer.
Namespace
Drupal\purge_queuer_url\FormCode
public function addMoreSubmit(array &$form, FormStateInterface $form_state) {
$count = $form_state
->get('blacklist_items_count');
$count++;
$form_state
->set('blacklist_items_count', $count);
$form_state
->setRebuild();
}