function ContextDefinitionInterface::setDefaultValue

Same name in other branches
  1. 9 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDefaultValue()
  2. 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setDefaultValue()
  3. 11.x 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\Context

Code

public function setDefaultValue($default_value);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.