You are here

public function EntityContextDefinition::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/EntityContextDefinition.php, line 110

Class

EntityContextDefinition
Extends the core entity context definition class with useful methods.

Namespace

Drupal\rules\Context

Code

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