function RulesComponentEditForm::form

Overrides RulesComponentFormBase::form

File

src/Form/RulesComponentEditForm.php, line 42

Class

RulesComponentEditForm
Provides a form to edit a component.

Namespace

Drupal\rules\Form

Code

public function form(array $form, FormStateInterface $form_state) {
    // CSS to make form easier to use. Load this at end so we can override
    // styles added by #theme table.
    $form['#attached']['library'][] = 'rules/rules_ui.styles';
    $form = $this->rulesUiHandler
        ->getForm()
        ->buildForm($form, $form_state);
    return parent::form($form, $form_state);
}