You are here

class EntityChangedConstraint in Drupal 8

Same name and namespace in other branches
  1. 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

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