function ValidReferenceConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ ValidReferenceConstraint.php, line 21
Class
- ValidReferenceConstraint
- Entity Reference valid reference constraint.
Namespace
Drupal\Core\Entity\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public $message = 'This entity (%type: %id) cannot be referenced.', public $nonExistingMessage = 'The referenced entity (%type: %id) does not exist.', public $invalidAutocreateMessage = 'This entity (%type: %label) cannot be referenced.', public $nullMessage = 'This value should not be null.', ?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.