3 namespace Drupal\content_translation\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Validation constraint for the entity changed timestamp.
13 * id = "ContentTranslationSynchronizedFields",
14 * label = @Translation("Content translation synchronized fields", context = "Validation"),
18 class ContentTranslationSynchronizedFieldsConstraint extends Constraint {
20 // In this case "elements" refers to "field properties", in fact it is what we
21 // are using in the UI elsewhere.
22 public $defaultRevisionMessage = 'Non-translatable field elements can only be changed when updating the current revision.';
23 public $defaultTranslationMessage = 'Non-translatable field elements can only be changed when updating the original language.';