function ReferenceAccessConstraint::__construct

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ReferenceAccessConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\ReferenceAccessConstraint::__construct()

Attributes

#[HasNamedArguments]

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ReferenceAccessConstraint.php, line 21

Class

ReferenceAccessConstraint
Entity Reference valid reference constraint.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public $message = 'You do not have access to the referenced entity (%type: %id).', ?array $groups = NULL, mixed $payload = NULL) {
  parent::__construct($options, $groups, $payload);
}

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