src/Validation.php
public function getSummaryMessage(): string {
        if ($main = $this->getMainMessage()) {
            return $main;
        } elseif ($this->isValid()) {
            return $this->translate('Validation succeeded.');
        } else {
            return $this->translate('Validation failed.');
        }
    }
public function getSummaryMessage(): string {
        if ($main = $this->getMainMessage()) {
            return $main;
        } elseif ($this->isValid()) {
            return $this->translate('Validation succeeded.');
        } else {
            return $this->translate('Validation failed.');
        }
    }
public function getSummaryMessage ( ) : string { if ( $ main = $ this -> getMainMessage ( ) ) { return $ main ; } elseif ( $ this -> isValid ( ) ) { return $ this -> translate ( 'Validation succeeded.' ) ; } else { return $ this -> translate ( 'Validation failed.' ) ; } }
Get just the summary message for the validation.

@return string Returns the message.
Get just the summary message for the validation .