public function AnimateAnyForm::animate_any_custom_add_more_add_one in Animate Any 8
Submit handler for the "add-one-more" button.
File
- src/
Form/ AnimateAnyForm.php, line 202
Class
- AnimateAnyForm
- Provides the Animate Any form.
Namespace
Drupal\animate_any\FormCode
public function animate_any_custom_add_more_add_one(array $form, FormStateInterface $form_state) {
$max = $form_state
->get('field_deltas') + 1;
$form_state
->set('field_deltas', $max);
$form_state
->setRebuild();
}