public function Context::setDescription in Context 8
Same name and namespace in other branches
- 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::setDescription()
- 8.0 src/Entity/Context.php \Drupal\context\Entity\Context::setDescription()
Set the context description.
Parameters
string $description:
Return value
$this
Overrides ContextInterface::setDescription
File
- src/
Entity/ Context.php, line 191
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function setDescription($description) {
if (!is_string($description)) {
throw new InvalidArgumentException('The context description must be a string.');
}
$this->description = $description;
return $this;
}