class EntityReferenceSupportedNewEntitiesConstraint in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint
- 10 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint
The entity reference supported new entities constraint.
Plugin annotation
@Constraint(
id = "EntityReferenceSupportedNewEntities",
label = @Translation("Entity Reference Supported New Entities", context = "Validation"),
)
Hierarchy
- class \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of EntityReferenceSupportedNewEntitiesConstraint
File
- core/
modules/ workspaces/ src/ Plugin/ Validation/ Constraint/ EntityReferenceSupportedNewEntitiesConstraint.php, line 15
Namespace
Drupal\workspaces\Plugin\Validation\ConstraintView source
class EntityReferenceSupportedNewEntitiesConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = '%collection_label can only be created in the default workspace.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityReferenceSupportedNewEntitiesConstraint:: |
public | property | The default violation message. |