3 namespace Drupal\workspaces\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * The entity reference supported new entities constraint.
11 * id = "EntityReferenceSupportedNewEntities",
12 * label = @Translation("Entity Reference Supported New Entities", context = "Validation"),
15 class EntityReferenceSupportedNewEntitiesConstraint extends Constraint {
18 * The default violation message.
22 public $message = '%collection_label can only be created in the default workspace.';