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