public function ContextDefinitionInterface::setAllowNull in Typed Data API enhancements 8
Sets the "allow NULL value" behavior.
Parameters
bool $null_allowed: TRUE if NULL values should be allowed, FALSE otherwise.
Return value
$this
1 method overrides ContextDefinitionInterface::setAllowNull()
- ContextDefinition::setAllowNull in src/
Context/ ContextDefinition.php - Sets the "allow NULL value" behavior.
File
- src/
Context/ ContextDefinitionInterface.php, line 39
Class
- ContextDefinitionInterface
- Context definition information required by Typed Data.
Namespace
Drupal\typed_data\ContextCode
public function setAllowNull($null_allowed);