function ContextDefinition::setAssignmentRestriction
Overrides ContextDefinitionInterface::setAssignmentRestriction
File
-
src/
Context/ ContextDefinition.php, line 204
Class
- ContextDefinition
- Extends the core context definition class with useful methods.
Namespace
Drupal\rules\ContextCode
public function setAssignmentRestriction($restriction) {
$this->assignmentRestriction = $restriction;
return $this;
}