TelephoneLinkHandler implements LinkHandlingInterface
Resolves telephone numbers
Table of Contents
Interfaces
- LinkHandlingInterface
- Interface for classes which are transforming a tag link hrefs to records or resources basically any URLs that should not be saved directly in the database on as is basis since they might be moved, changed by admin working in backend
Methods
- asString() : string
- Returns the link to a telephone number as a string
- resolveHandlerData() : array<string|int, mixed>
- Returns the telephone number without the "tel:" prefix in the 'telephone' property of the array.
Methods
asString()
Returns the link to a telephone number as a string
public
asString(array<string|int, mixed> $parameters) : string
Parameters
- $parameters : array<string|int, mixed>
Return values
stringresolveHandlerData()
Returns the telephone number without the "tel:" prefix in the 'telephone' property of the array.
public
resolveHandlerData(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>