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