function EntityUntranslatableFieldsConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ EntityUntranslatableFieldsConstraint.php, line 20
Class
- EntityUntranslatableFieldsConstraint
- Validation constraint for the entity changed timestamp.
Namespace
Drupal\Core\Entity\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public $defaultRevisionMessage = 'Non-translatable fields can only be changed when updating the current revision.', public $defaultTranslationMessage = 'Non-translatable fields can only be changed when updating the original language.', ?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.