You are here

public property OnlyOneConstraint::$nodeExists in Allow a content type only once (Only One) 8

Message shown when a node of a language exists on a content type.

The message that will be shown when a node of a language exists on a configured content type and you try to add another node for the same language.

Type: string

See also

https://www.drupal.org/project/onlyone/issues/2962186

https://www.drupal.org/project/onlyone/issues/2969293

File

src/Plugin/Validation/Constraint/OnlyOneConstraint.php, line 30

Class

OnlyOneConstraint
Checks that Only One node for each language exists.

Namespace

Drupal\onlyone\Plugin\Validation\Constraint

Code

public $nodeExists = "The content type %content_type is configured to have Only One node per language but the node <a href=':href'>@title</a> exists for the %language language.";