class EntityChangedConstraint
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraint
- 10 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\EntityChangedConstraint
- 11.x 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\ConstraintView 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
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.