protected function RegistrantForm::copyFormValuesToEntity in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Form/Entity/RegistrantForm.php \Drupal\rng\Form\Entity\RegistrantForm::copyFormValuesToEntity()
Copies top-level form values to entity properties.
This should not change existing entity properties that are not being edited by this form.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity the current form should operate upon.
array $form: A nested array of form elements comprising the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ContentEntityForm::copyFormValuesToEntity
File
- src/
Form/ Entity/ RegistrantForm.php, line 39
Class
- RegistrantForm
- Form controller for registrants.
Namespace
Drupal\rng\Form\EntityCode
protected function copyFormValuesToEntity(EntityInterface $entity, array $form, FormStateInterface $form_state) {
//$form['#parents'][] = 'details';
parent::copyFormValuesToEntity($entity, $form, $form_state);
// TODO: Change the autogenerated stub
}