class EntityReferenceSupportedNewEntitiesConstraint

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint
  2. 10 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint
  3. 9 core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint
  4. 8.9.x core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php \Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraint

The entity reference supported new entities constraint.

Attributes

#[Constraint(id: 'EntityReferenceSupportedNewEntities', label: new TranslatableMarkup('Entity Reference Supported New Entities', [], [ 'context' => 'Validation', ]))]

Hierarchy

Expanded class hierarchy of EntityReferenceSupportedNewEntitiesConstraint

File

core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php, line 13

Namespace

Drupal\workspaces\Plugin\Validation\Constraint
View source
class EntityReferenceSupportedNewEntitiesConstraint extends SymfonyConstraint {
  public function __construct(mixed $options = NULL, public $message = '%collection_label can only be created in the default workspace.', ?array $groups = NULL, mixed $payload = NULL) {
    parent::__construct($options, $groups, $payload);
  }

}

Members

Title Sort descending Modifiers Object type Summary
EntityReferenceSupportedNewEntitiesConstraint::__construct public function #[HasNamedArguments]

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