Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / content_translation / src / Plugin / Validation / Constraint / ContentTranslationSynchronizedFieldsConstraint.php
1 <?php
2
3 namespace Drupal\content_translation\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Validation constraint for the entity changed timestamp.
9  *
10  * @internal
11  *
12  * @Constraint(
13  *   id = "ContentTranslationSynchronizedFields",
14  *   label = @Translation("Content translation synchronized fields", context = "Validation"),
15  *   type = {"entity"}
16  * )
17  */
18 class ContentTranslationSynchronizedFieldsConstraint extends Constraint {
19
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.';
24
25 }