You are here

public function RulesComponentEditForm::buildForm in Rules 8.3

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 EntityForm::buildForm

File

src/Form/RulesComponentEditForm.php, line 23

Class

RulesComponentEditForm
Provides a form to edit a component.

Namespace

Drupal\rules\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, RulesUiConfigHandler $rules_ui_handler = NULL) {

  // Overridden such we can receive further route parameters.
  $this->rulesUiHandler = $rules_ui_handler;
  return parent::buildForm($form, $form_state);
}