public function VariableForm::form in Business Rules 8
Same name and namespace in other branches
- 2.x 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\FormCode
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;
}