You are here

class EntityUntranslatableFieldsConstraint in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityUntranslatableFieldsConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityUntranslatableFieldsConstraint
  2. 10 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityUntranslatableFieldsConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityUntranslatableFieldsConstraint

Validation constraint for the entity changed timestamp.

Plugin annotation


@Constraint(
  id = "EntityUntranslatableFields",
  label = @Translation("Entity untranslatable fields", context = "Validation"),
  type = {"entity"}
)

Hierarchy

Expanded class hierarchy of EntityUntranslatableFieldsConstraint

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityUntranslatableFieldsConstraint.php, line 16

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint
View source
class EntityUntranslatableFieldsConstraint extends Constraint {
  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.';

}

Members