public function ContextDefinitionInterface::setDefaultValue in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDefaultValue()
Sets the default data value.
Parameters
mixed $default_value: The default value to be set or NULL to remove any default value.
Return value
$this
1 method overrides ContextDefinitionInterface::setDefaultValue()
- ContextDefinition::setDefaultValue in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextDefinition.php - Sets the default data value.
File
- core/
lib/ Drupal/ Component/ Plugin/ Context/ ContextDefinitionInterface.php, line 125
Class
- ContextDefinitionInterface
- Interface used to define definition objects found in ContextInterface.
Namespace
Drupal\Component\Plugin\ContextCode
public function setDefaultValue($default_value);