function ContextDefinition::setAllowNull
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 189
Class
- ContextDefinition
- Extends the core context definition class with useful methods.
Namespace
Drupal\rules\ContextCode
public function setAllowNull($null_allowed) {
$this->allowNull = $null_allowed;
return $this;
}