LinktypeInterface

interface TYPO3\CMS\Linkvalidator\Linktype\LinktypeInterface

All linktypes handled by the LinkValidator must implement this interface.

If autoconfigure is enabled in the Services.yaml classes implementing this interface are registered automatically as linktypes. Otherwise the tag linkvalidator.linktype must be set in the Services.yaml.

getIdentifier()

Returns the unique identifier of the linktype

Return type

string

Checks a given link for validity

Parameters
  • $url (unknown) -- the url

  • $softRefEntry (unknown) -- the softRefEntry

  • $reference (unknown) -- the reference

setAdditionalConfig(array config)

Function to override config of Linktype. Should be used only if necessary. Add additional configuration to TSconfig.

Parameters
  • $config (array) -- the config

fetchType(unknown value, unknown type, unknown key)

Base type fetching method, based on the type that softRefParserObj returns.

Parameters
  • $value (unknown) -- the value

  • $type (unknown) -- the type

  • $key (unknown) -- the key

getErrorParams()

Get the value of the private property errorParams.

getBrokenUrl(unknown row)

Construct a valid Url for browser output

Parameters
  • $row (unknown) -- the row

getErrorMessage(unknown errorParams)

Generate the localized error message from the error params saved from the parsing

Parameters
  • $errorParams (unknown) -- the errorParams