You are here

public function VariableForm::form in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Form/VariableForm.php \Drupal\business_rules\Form\VariableForm::form()

Gets the actual form array to be built.

Overrides ItemForm::form

See also

\Drupal\Core\Entity\EntityForm::processForm()

\Drupal\Core\Entity\EntityForm::afterBuild()

File

src/Form/VariableForm.php, line 30

Class

VariableForm
Class VariableForm.

Namespace

Drupal\business_rules\Form

Code

public function form(array $form, FormStateInterface $form_state) {
  $form = parent::form($form, $form_state);
  $form['used_by_conditions'] = $this
    ->getVariableUsedByDetailsBox('condition');
  $form['used_by_conditions']['#weight'] = 1101;
  $form['used_by_actions'] = $this
    ->getVariableUsedByDetailsBox('action');
  $form['used_by_actions']['#weight'] = 1102;
  return $form;
}