class EntityUntranslatableFieldsConstraint
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityUntranslatableFieldsConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityUntranslatableFieldsConstraint
- 8.9.x core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityUntranslatableFieldsConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityUntranslatableFieldsConstraint
- 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.
Hierarchy
- class \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityUntranslatableFieldsConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of EntityUntranslatableFieldsConstraint
File
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ EntityUntranslatableFieldsConstraint.php, line 12
Namespace
Drupal\Core\Entity\Plugin\Validation\ConstraintView source
class EntityUntranslatableFieldsConstraint extends SymfonyConstraint {
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
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.