function ContextDefinitionInterface::setDefaultValue
Same name in other branches
- 9 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDefaultValue()
- 8.9.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDefaultValue()
- 10 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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.