You are here

class EntityChangedConstraint in Drupal 10

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

Validation constraint for the entity changed timestamp.

Plugin annotation


@Constraint(
  id = "EntityChanged",
  label = @Translation("Entity changed", context = "Validation"),
  type = {"entity"}
)

Hierarchy

  • class \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of EntityChangedConstraint

1 file declares its use of EntityChangedConstraint
BlockContentEntityChangedConstraint.php in core/modules/block_content/src/Plugin/Validation/Constraint/BlockContentEntityChangedConstraint.php

File

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

Namespace

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

}

Members