You are here

public function ConditionPluginBase::isNegated in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Condition/ConditionPluginBase.php \Drupal\Core\Condition\ConditionPluginBase::isNegated()

Determines whether condition result will be negated.

Return value

bool Whether the condition result will be negated.

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.
Language::evaluate in core/modules/language/src/Plugin/Condition/Language.php
Evaluates the condition and returns TRUE or FALSE accordingly.
NodeType::evaluate in core/modules/node/src/Plugin/Condition/NodeType.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.

File

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

Class

ConditionPluginBase
Provides a basis for fulfilling contexts for condition plugins.

Namespace

Drupal\Core\Condition

Code

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