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