You are here

public function IntegrityViolationInterface::getContextName in Rules 8.3

Returns the associated context name, if there is one.

A violation can relate to a specific context that is used in the expression.

Return value

string|null The context name or NULL if the violation is not specific to a context.

1 method overrides IntegrityViolationInterface::getContextName()
IntegrityViolation::getContextName in src/Engine/IntegrityViolation.php
Returns the associated context name, if there is one.

File

src/Engine/IntegrityViolationInterface.php, line 53

Class

IntegrityViolationInterface
Describes a violation of the integrity of a rule.

Namespace

Drupal\rules\Engine

Code

public function getContextName();