function EntityChangedConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ EntityChangedConstraint.php, line 20
Class
- EntityChangedConstraint
- Validation constraint for the entity changed timestamp.
Namespace
Drupal\Core\Entity\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public $message = 'The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.', ?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.