class EntityChangedConstraint in Drupal 9
Same name and namespace in other branches
- 8 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\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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityChangedConstraint:: |
public | property |