You are here

public function ContextDefinition::getDefaultValue in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php \Drupal\Core\Plugin\Context\ContextDefinition::getDefaultValue()
  2. 9 core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php \Drupal\Core\Plugin\Context\ContextDefinition::getDefaultValue()

Gets the default value for this context definition.

Return value

mixed The default value or NULL if no default value is set.

Overrides ContextDefinitionInterface::getDefaultValue

File

core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php, line 196

Class

ContextDefinition
Defines a class for context definitions.

Namespace

Drupal\Core\Plugin\Context

Code

public function getDefaultValue() {
  return $this->defaultValue;
}