EntityReferenceSupportedNewEntitiesConstraint.php

Same filename in other branches
  1. 9 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php
  2. 10 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php
  3. 11.x core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php

Namespace

Drupal\workspaces\Plugin\Validation\Constraint

File

core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php

View source
<?php

namespace Drupal\workspaces\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * The entity reference supported new entities constraint.
 *
 * @Constraint(
 *   id = "EntityReferenceSupportedNewEntities",
 *   label = @Translation("Entity Reference Supported New Entities", context = "Validation"),
 * )
 */
class EntityReferenceSupportedNewEntitiesConstraint extends Constraint {
    
    /**
     * The default violation message.
     *
     * @var string
     */
    public $message = '%collection_label can only be created in the default workspace.';

}

Classes

Title Deprecated Summary
EntityReferenceSupportedNewEntitiesConstraint The entity reference supported new entities constraint.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.