You are here

public function ContextDefinitionInterface::isRequired in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::isRequired()

Determines whether the context is required.

For required data a non-NULL value is mandatory.

Return value

bool Whether a data value is required.

1 method overrides ContextDefinitionInterface::isRequired()
ContextDefinition::isRequired in core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
Determines whether the context is required.

File

core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php, line 100
Contains \Drupal\Component\Plugin\Context\ContextDefinitionInterface.

Class

ContextDefinitionInterface
Interface for context definitions.

Namespace

Drupal\Component\Plugin\Context

Code

public function isRequired();