public function ConditionPluginBase::buildForm

Implements \Drupal\Core\Form\FormInterface::buildForm().

Overrides FormInterface::buildForm

3 calls to ConditionPluginBase::buildForm()
Language::buildForm in drupal/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
NodeType::buildForm in drupal/core/modules/node/lib/Drupal/node/Plugin/Condition/NodeType.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
Php::buildForm in drupal/core/modules/php/lib/Drupal/php/Plugin/Condition/Php.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
3 methods override ConditionPluginBase::buildForm()
Language::buildForm in drupal/core/modules/language/lib/Drupal/language/Plugin/Condition/Language.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
NodeType::buildForm in drupal/core/modules/node/lib/Drupal/node/Plugin/Condition/NodeType.php
Implements \Drupal\Core\Form\FormInterface::buildForm().
Php::buildForm in drupal/core/modules/php/lib/Drupal/php/Plugin/Condition/Php.php
Implements \Drupal\Core\Form\FormInterface::buildForm().

File

drupal/core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 35
Contains \Drupal\Core\Condition\ConditionPluginBase.

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function buildForm(array $form, array &$form_state) {
  $form['negate'] = array(
    '#type' => 'checkbox',
    '#title' => t('Negate the condition.'),
    '#default_value' => isset($this->configuration['negate']) ? $this->configuration['negate'] : FALSE,
  );
  return $form;
}