You are here

public function ContextDefinitionInterface::setDefaultValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 128
Contains \Drupal\Component\Plugin\Context\ContextDefinitionInterface.

Class

ContextDefinitionInterface
Interface for context definitions.

Namespace

Drupal\Component\Plugin\Context

Code

public function setDefaultValue($default_value);