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\EngineCode
public function setContextName($context_name) {
$this->contextName = $context_name;
return $this;
}