You are here

public function IntegrityViolation::setContextName in Rules 8.3

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

Parameters

string $context_name: The context name.

Return value

$this

Overrides IntegrityViolationInterface::setContextName

File

src/Engine/IntegrityViolation.php, line 51

Class

IntegrityViolation
Holds information about an integrity violation in a Rules expression.

Namespace

Drupal\rules\Engine

Code

public function setContextName($context_name) {
  $this->contextName = $context_name;
  return $this;
}