public function ContextDefinition::getDefaultValue in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php \Drupal\Core\Plugin\Context\ContextDefinition::getDefaultValue()
- 10 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
1 call to ContextDefinition::getDefaultValue()
- ContextDefinition::initializeEntityContextDefinition in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php - Initializes $this->entityContextDefinition for backwards compatibility.
File
- core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php, line 228
Class
- ContextDefinition
- Defines a class for context definitions.
Namespace
Drupal\Core\Plugin\ContextCode
public function getDefaultValue() {
return $this->defaultValue;
}