public property SingleLegalDocumentPublishedVersionConstraint::$message in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/Validation/Constraint/SingleLegalDocumentPublishedVersionConstraint.php \Drupal\entity_legal\Plugin\Validation\Constraint\SingleLegalDocumentPublishedVersionConstraint::message
- 4.0.x src/Plugin/Validation/Constraint/SingleLegalDocumentPublishedVersionConstraint.php \Drupal\entity_legal\Plugin\Validation\Constraint\SingleLegalDocumentPublishedVersionConstraint::message
Violation message.
Type: string
File
- src/
Plugin/ Validation/ Constraint/ SingleLegalDocumentPublishedVersionConstraint.php, line 22
Class
- SingleLegalDocumentPublishedVersionConstraint
- Checks if there's only one published version in a legal document.
Namespace
Drupal\entity_legal\Plugin\Validation\ConstraintCode
public $message = 'A legal document can have only one published version. %legal_document %version is already published and should be un-published before publishing this version.';