function IntegrityViolationInterface::setContextName

Sets the context name when this violation should be associated to one.

Parameters

string $context_name: The context name.

Return value

$this

1 method overrides IntegrityViolationInterface::setContextName()
IntegrityViolation::setContextName in src/Engine/IntegrityViolation.php
Sets the context name when this violation should be associated to one.

File

src/Engine/IntegrityViolationInterface.php, line 42

Class

IntegrityViolationInterface
Describes a violation of the integrity of a rule.

Namespace

Drupal\rules\Engine

Code

public function setContextName($context_name);