function ContextConfig::negateResult

Negates the result of the plugin (or not).

Only applicable to condition plugins.

Parameters

bool $bool: Whether to negate the result.

Return value

$this

File

src/Context/ContextConfig.php, line 157

Class

ContextConfig
Class for value objects helping with context configuration.

Namespace

Drupal\rules\Context

Code

public function negateResult($bool = TRUE) {
    return $this->setConfigKey('negate', $bool);
}