You are here

public function IntegrityViolationInterface::setMessage in Rules 8.3

Sets the user facing message that can be displayed for this violation.

Parameters

\Drupal\Core\StringTranslation\TranslatableMarkup $message: The message.

Return value

$this

1 method overrides IntegrityViolationInterface::setMessage()
IntegrityViolation::setMessage in src/Engine/IntegrityViolation.php
Sets the user facing message that can be displayed for this violation.

File

src/Engine/IntegrityViolationInterface.php, line 24

Class

IntegrityViolationInterface
Describes a violation of the integrity of a rule.

Namespace

Drupal\rules\Engine

Code

public function setMessage(TranslatableMarkup $message);