public function EventTypeRuleDeleteAll::buildForm in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::buildForm()
- 8 src/Form/EventTypeRuleDeleteAll.php \Drupal\rng\Form\EventTypeRuleDeleteAll::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/ EventTypeRuleDeleteAll.php, line 102
Class
- EventTypeRuleDeleteAll
- Form controller to delete all custom rules for an event type.
Namespace
Drupal\rng\FormCode
public function buildForm(array $form, FormStateInterface $form_state, EventTypeInterface $event_type = NULL) {
$this->eventType = $event_type;
return parent::buildForm($form, $form_state);
}