/** * Generates: Limitations did not validate * * Also sets the given $errors to the internal property, retrievable by getValidationErrors() * * @param \eZ\Publish\Core\FieldType\ValidationError[] $errors */ public function __construct(array $errors) { $this->validationErrors = $errors; parent::__construct("Limitations did not validate"); }
/** * Generates: Limitations did not validate. * * Also sets the given $errors to the internal property, retrievable by getValidationErrors() * * @param \eZ\Publish\Core\FieldType\ValidationError[] $errors */ public function __construct(array $errors) { $this->validationErrors = $errors; $this->setMessageTemplate('Limitations did not validate'); parent::__construct($this->getBaseTranslation()); }