You are here

class TaxonomyUnique in Taxonomy unique 8.2

Taxonomy unique constraint.

Plugin annotation


@Constraint(
  id = "taxonomy_unique",
  label = @Translation("Taxonomy unique", context = "Validation")
)

Hierarchy

  • class \Drupal\taxonomy_unique\Plugin\Validation\Constraint\TaxonomyUnique extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of TaxonomyUnique

File

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

Namespace

Drupal\taxonomy_unique\Plugin\Validation\Constraint
View source
class TaxonomyUnique extends Constraint {
  public $notUnique = TAXONOMY_UNIQUE_DEFAULT_MESSAGE;

  /**
   * Overwrites the default error message.
   */
  public function setErrorMessage($message) {
    $this->notUnique = $message;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TaxonomyUnique::$notUnique public property
TaxonomyUnique::setErrorMessage public function Overwrites the default error message.