.. Generated by https://github.com/TYPO3-Documentation/t3docs-codesnippets .. Extracted from EXT:examples/Classes/LinkValidator/LinkType/ExampleLinkType.php .. code-block:: php :caption: EXT:examples/Classes/LinkValidator/LinkType/ExampleLinkType.php getLanguageService(); return match ($errorParams['errno'] ?? 0) { 404 => $lang->sL('LLL:EXT:linkvalidator/Resources/Private/Language/Module/locallang.xlf:list.report.pagenotfound404'), // fall back to generic error message default => sprintf( $lang->sL('LLL:EXT:linkvalidator/Resources/Private/Language/Module/locallang.xlf:list.report.externalerror'), $errorParams['errno'], ), }; } }