SingleLegalDocumentPublishedVersionConstraint.php in Entity Legal 4.0.x
File
src/Plugin/Validation/Constraint/SingleLegalDocumentPublishedVersionConstraint.php
View source
<?php
namespace Drupal\entity_legal\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
class SingleLegalDocumentPublishedVersionConstraint extends Constraint {
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.';
}