8.5.x ConditionPluginBase.php ConditionPluginBase::isNegated()
8.0.x ConditionPluginBase.php ConditionPluginBase::isNegated()
8.1.x ConditionPluginBase.php ConditionPluginBase::isNegated()
8.2.x ConditionPluginBase.php ConditionPluginBase::isNegated()
8.3.x ConditionPluginBase.php ConditionPluginBase::isNegated()
8.4.x ConditionPluginBase.php ConditionPluginBase::isNegated()
8.6.x ConditionPluginBase.php ConditionPluginBase::isNegated()

Determines whether condition result will be negated.

Return value

bool Whether the condition result will be negated.

Overrides ConditionInterface::isNegated

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']);
}