public function ContextInterface::setLabel in Context 8.4
Same name and namespace in other branches
- 8 src/ContextInterface.php \Drupal\context\ContextInterface::setLabel()
- 8.0 src/ContextInterface.php \Drupal\context\ContextInterface::setLabel()
Set the context label.
Parameters
string $label: The new context label to set.
Return value
$this This Context object.
1 method overrides ContextInterface::setLabel()
- Context::setLabel in src/
Entity/ Context.php - Set the context label.
File
- src/
ContextInterface.php, line 62
Class
- ContextInterface
- Provides an interface for Context.
Namespace
Drupal\contextCode
public function setLabel($label);