You are here

public function EntityContextDefinition::getAssignmentRestriction in Rules 8.3

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.

Overrides ContextDefinitionInterface::getAssignmentRestriction

File

src/Context/EntityContextDefinition.php, line 118

Class

EntityContextDefinition
Extends the core entity context definition class with useful methods.

Namespace

Drupal\rules\Context

Code

public function getAssignmentRestriction() {
  return $this->assignmentRestriction;
}