public function ConditionSet::buildForm in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Plugin/BusinessRulesCondition/ConditionSet.php \Drupal\business_rules\Plugin\BusinessRulesCondition\ConditionSet::buildForm()
Form constructor.
Give a chance to plugin to change the buildForm method.
Parameters
array $form: The form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Overrides BusinessRulesItemPluginBase::buildForm
File
- src/
Plugin/ BusinessRulesCondition/ ConditionSet.php, line 311
Class
- ConditionSet
- Class ConditionSet.
Namespace
Drupal\business_rules\Plugin\BusinessRulesConditionCode
public function buildForm(array &$form, FormStateInterface $form_state) {
$condition = $form_state
->get('business_rule_condition');
unset($form['variables']);
if (!empty($condition) && $condition
->isNew()) {
$form['actions']['submit']['#value'] = t('Continue');
}
}