function ContextDefinitionInterface::getAssignmentRestriction

Determines if this context has an assignment restriction.

Return value

string|null Either ASSIGNMENT_RESTRICTION_INPUT for contexts that are only allowed to be provided as input values, ASSIGNMENT_RESTRICTION_SELECTOR for contexts that must be provided as data selectors or NULL if there is no restriction for this context.

2 methods override ContextDefinitionInterface::getAssignmentRestriction()
ContextDefinition::getAssignmentRestriction in src/Context/ContextDefinition.php
Determines if this context has an assignment restriction.
EntityContextDefinition::getAssignmentRestriction in src/Context/EntityContextDefinition.php
Determines if this context has an assignment restriction.

File

src/Context/ContextDefinitionInterface.php, line 50

Class

ContextDefinitionInterface
Context definition information required by Rules.

Namespace

Drupal\rules\Context

Code

public function getAssignmentRestriction();