Skip to content
Snippets Groups Projects
Commit a6e10ab6 authored by Georg Ringer's avatar Georg Ringer Committed by Susanne Moog
Browse files

[BUGFIX] Support telephone links in InputLinkElement

With #86629 the link type "telephone" has been added but it was
forgotten to add support for it in the InputLinkElement.

Add the support and show a nice icon next to the number.

Resolves: #90771
Releases: master
Change-Id: Ib2ea37ab07b0ae2fa9a429dc683c6021a8691aae
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63760


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarSusanne Moog <look@susi.dev>
parent c3f5dcf5
Branches
Tags
No related merge requests found
......@@ -420,6 +420,15 @@ class InputLinkElement extends AbstractFormElement
];
}
break;
case LinkService::TYPE_TELEPHONE:
$telephone = $linkData['telephone'];
if ($telephone) {
$data = [
'text' => $telephone,
'icon' => $this->iconFactory->getIcon('actions-device-mobile', Icon::SIZE_SMALL)->render()
];
}
break;
default:
// Please note that this hook is preliminary and might change, as this element could become its own
// TCA type in the future
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment