public function CustomFilterRulesDeleteForm::buildForm in Custom filter 8
Same name and namespace in other branches
- 2.0.x src/Form/CustomFilterRulesDeleteForm.php \Drupal\customfilter\Form\CustomFilterRulesDeleteForm::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/ CustomFilterRulesDeleteForm.php, line 36
Class
- CustomFilterRulesDeleteForm
- Builds the form to delete a Custom Filter.
Namespace
Drupal\customfilter\FormCode
public function buildForm(array $form, FormStateInterface $form_state, CustomFilter $customfilter = NULL, $rule_id = NULL) {
$this->customfilter = $customfilter;
$this->rule = $this->customfilter
->getRule($rule_id);
return parent::buildForm($form, $form_state);
}