public function RulesComponentEditForm::form in Rules 8.3
Gets the actual form array to be built.
Overrides RulesComponentFormBase::form
See also
\Drupal\Core\Entity\EntityForm::processForm()
\Drupal\Core\Entity\EntityForm::afterBuild()
File
- src/
Form/ RulesComponentEditForm.php, line 42
Class
- RulesComponentEditForm
- Provides a form to edit a component.
Namespace
Drupal\rules\FormCode
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);
}