function DeleteEventForm::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.

\Drupal\rules\Ui\RulesUiHandlerInterface $rules_ui_handler: The RulesUI handler of the currently active UI.

\Drupal\rules\Entity\ReactionRuleConfig $rules_reaction_rule: The rule config object this form is for.

string $id: The ID of the event in the rule.

Return value

array The form structure.

Overrides ConfirmFormBase::buildForm

File

src/Form/DeleteEventForm.php, line 90

Class

DeleteEventForm
Removes an event from a rule.

Namespace

Drupal\rules\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, RulesUiHandlerInterface $rules_ui_handler = NULL, ReactionRuleConfig $rules_reaction_rule = NULL, $id = NULL) {
    $this->rulesUiHandler = $rules_ui_handler;
    $this->reactionRule = $rules_reaction_rule;
    $this->id = $id;
    return parent::buildForm($form, $form_state);
}