public function UrlVariable::buildForm in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Plugin/BusinessRulesVariable/UrlVariable.php \Drupal\business_rules\Plugin\BusinessRulesVariable\UrlVariable::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/ BusinessRulesVariable/ UrlVariable.php, line 109
Class
- UrlVariable
- A variable representing the current url.
Namespace
Drupal\business_rules\Plugin\BusinessRulesVariableCode
public function buildForm(array &$form, FormStateInterface $form_state) {
unset($form['variables']);
unset($form['tokens']);
}