You are here

public function ContextDefinition::isAllowedNull in Typed Data API enhancements 8

Determines if the context value is allowed to be NULL.

Return value

bool TRUE if NULL values are allowed, FALSE otherwise.

Overrides ContextDefinitionInterface::isAllowedNull

File

src/Context/ContextDefinition.php, line 93

Class

ContextDefinition
Extends the core context definition class with useful methods.

Namespace

Drupal\typed_data\Context

Code

public function isAllowedNull() {
  return $this->allowNull;
}