public function IntegrityViolation::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.
Overrides IntegrityViolationInterface::getContextName
File
- src/
Engine/ IntegrityViolation.php, line 59
Class
- IntegrityViolation
- Holds information about an integrity violation in a Rules expression.
Namespace
Drupal\rules\EngineCode
public function getContextName() {
return $this->contextName;
}