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\ConstraintView source
class TaxonomyUnique extends Constraint {
public $notUnique = TAXONOMY_UNIQUE_DEFAULT_MESSAGE;
/**
* Overwrites the default error message.
*/
public function setErrorMessage($message) {
$this->notUnique = $message;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxonomyUnique:: |
public | property | ||
TaxonomyUnique:: |
public | function | Overwrites the default error message. |