You are here

public function ContextDefinition::setAllowNull in Rules 8.3

Sets the "allow NULL value" behavior.

Parameters

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

Return value

$this

Overrides ContextDefinitionInterface::setAllowNull

File

src/Context/ContextDefinition.php, line 165

Class

ContextDefinition
Extends the core context definition class with useful methods.

Namespace

Drupal\rules\Context

Code

public function setAllowNull($null_allowed) {
  $this->allowNull = $null_allowed;
  return $this;
}