EntityChangedConstraint.php 542 B

1234567891011121314151617181920
  1. <?php
  2. namespace Drupal\Core\Entity\Plugin\Validation\Constraint;
  3. use Symfony\Component\Validator\Constraint;
  4. /**
  5. * Validation constraint for the entity changed timestamp.
  6. *
  7. * @Constraint(
  8. * id = "EntityChanged",
  9. * label = @Translation("Entity changed", context = "Validation"),
  10. * type = {"entity"}
  11. * )
  12. */
  13. class EntityChangedConstraint extends Constraint {
  14. public $message = 'The content has either been modified by another user, or you have already submitted modifications. As a result, your changes cannot be saved.';
  15. }