function ContextDefinitionInterface::setAllowNull

Sets the "allow NULL value" behavior.

Parameters

bool $null_allowed: TRUE if NULL values should be allowed, FALSE otherwise.

Return value

$this

2 methods override ContextDefinitionInterface::setAllowNull()
ContextDefinition::setAllowNull in src/Context/ContextDefinition.php
Sets the "allow NULL value" behavior.
EntityContextDefinition::setAllowNull in src/Context/EntityContextDefinition.php
Sets the "allow NULL value" behavior.

File

src/Context/ContextDefinitionInterface.php, line 39

Class

ContextDefinitionInterface
Context definition information required by Rules.

Namespace

Drupal\rules\Context

Code

public function setAllowNull($null_allowed);