function ContentTranslationSynchronizedFieldsConstraint::__construct

Attributes

#[HasNamedArguments]

File

core/modules/content_translation/src/Plugin/Validation/Constraint/ContentTranslationSynchronizedFieldsConstraint.php, line 22

Class

ContentTranslationSynchronizedFieldsConstraint
Validation constraint for the entity changed timestamp.

Namespace

Drupal\content_translation\Plugin\Validation\Constraint

Code

public function __construct(mixed $options = NULL, public string $defaultRevisionMessage = 'Non-translatable field elements can only be changed when updating the current revision.', public string $defaultTranslationMessage = 'Non-translatable field elements 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.