function ConditionPluginBase::isNegated

Same name in other branches
  1. 9 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::isNegated()
  2. 8.9.x core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::isNegated()
  3. 11.x core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::isNegated()

Overrides ConditionInterface::isNegated

4 calls to ConditionPluginBase::isNegated()
CurrentThemeCondition::summary in core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
Provides a human readable summary of the condition's configuration.
EntityBundle::evaluate in core/lib/Drupal/Core/Entity/Plugin/Condition/EntityBundle.php
Evaluates the condition and returns TRUE or FALSE accordingly.
Language::evaluate in core/modules/language/src/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.
UserRole::evaluate in core/modules/user/src/Plugin/Condition/UserRole.php
Evaluates the condition and returns TRUE or FALSE accordingly.
1 method overrides ConditionPluginBase::isNegated()
ResponseStatus::isNegated in core/modules/system/src/Plugin/Condition/ResponseStatus.php
Determines whether condition result will be negated.

File

core/lib/Drupal/Core/Condition/ConditionPluginBase.php, line 44

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

public function isNegated() {
    return !empty($this->configuration['negate']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.