public function EventAccessResetForm::buildForm in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Form/EventAccessResetForm.php \Drupal\rng\Form\EventAccessResetForm::buildForm()
- 3.x src/Form/EventAccessResetForm.php \Drupal\rng\Form\EventAccessResetForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ EventAccessResetForm.php, line 127
Class
- EventAccessResetForm
- Form controller to reset event access to defaults.
Namespace
Drupal\rng\FormCode
public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $rng_event = NULL) {
$this->event = clone $rng_event;
$this->eventMeta = $this->eventManager
->getMeta($this->event);
return parent::buildForm($form, $form_state);
}