function ContextDefinitionInterface::setLabel

Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setLabel()
  2. 10 core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setLabel()
  3. 11.x core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php \Drupal\Component\Plugin\Context\ContextDefinitionInterface::setLabel()

Sets the human readable label.

Parameters

string $label: The label to set.

Return value

$this

1 method overrides ContextDefinitionInterface::setLabel()
ContextDefinition::setLabel in core/lib/Drupal/Core/Plugin/Context/ContextDefinition.php
Sets the human readable label.

File

core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php, line 31

Class

ContextDefinitionInterface
Interface used to define definition objects found in ContextInterface.

Namespace

Drupal\Component\Plugin\Context

Code

public function setLabel($label);

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