You are here

public function TaxonomyUnique::setErrorMessage in Taxonomy unique 8.2

Overwrites the default error message.

File

src/Plugin/Validation/Constraint/TaxonomyUnique.php, line 22

Class

TaxonomyUnique
Taxonomy unique constraint.

Namespace

Drupal\taxonomy_unique\Plugin\Validation\Constraint

Code

public function setErrorMessage($message) {
  $this->notUnique = $message;
}