SimpleSAML\Error\ErrorCodes::getErrorCodeTitle PHP Method

getErrorCodeTitle() public static method

Fetch a translation string for a title for a given error code.
public static getErrorCodeTitle ( string $errorCode ) : string
$errorCode string The error code to look up
return string A string to translate
    public static function getErrorCodeTitle($errorCode)
    {
        $errorCodeTitles = self::getAllErrorCodeTitles();
        return $errorCodeTitles[$errorCode];
    }