public function FlagFormBase::submitSelectPlugin in Flag 8.4
Handles submit call when sensor type is selected.
File
- src/
Form/ FlagFormBase.php, line 280
Class
- FlagFormBase
- Provides the base flag add/edit form.
Namespace
Drupal\flag\FormCode
public function submitSelectPlugin(array $form, FormStateInterface $form_state) {
// Rebuild the entity using the form's new state.
$this->entity = $this
->buildEntity($form, $form_state);
$form_state
->setRebuild();
}