public function VoteDeleteConfirm::afterBuild in Voting API 8.3
Form element #after_build callback: Updates the entity with submitted data.
Updates the internal $this->entity object with submitted values when the form is being rebuilt (e.g. submitted via AJAX), so that subsequent processing (e.g. AJAX callbacks) can rely on it.
Overrides EntityForm::afterBuild
File
- src/
Form/ VoteDeleteConfirm.php, line 89
Class
- VoteDeleteConfirm
- Provides a form for vote deletion.
Namespace
Drupal\votingapi\FormCode
public function afterBuild(array $element, FormStateInterface $form_state) {
return $element;
}