public function RateWidgetForm::addOne in Rate 8.2
Submit handler for the "add-one-more" button.
Increments the options table items counter and causes a rebuild.
File
- src/
RateWidgetForm.php, line 638
Class
- RateWidgetForm
- Form controller for vote type forms.
Namespace
Drupal\rateCode
public function addOne(array &$form, FormStateInterface $form_state) {
$form_state
->set('options_items_count', 1);
$form_state
->setRebuild();
}