public function EmbeddedComponentForm::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 FormInterface::buildForm
File
- src/
Form/ EmbeddedComponentForm.php, line 57
Class
- EmbeddedComponentForm
- Components form, ready to be embedded in some other form.
Namespace
Drupal\rules\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['locked'] = $this->rulesUiHandler
->addLockInformation();
return $this
->getFormHandler()
->form($form, $form_state);
}