.. Generated by https://github.com/linawolf/t3docs_restructured_api_tools
.. ddev exec bin/typo3  restructured_api_tools:php_domain '\\TYPO3\\CMS\\Linkvalidator\\Linktype\\LinktypeInterface' > output/LinktypeInterface.rst.txt

.. php:namespace::  TYPO3\CMS\Linkvalidator\Linktype

.. php:interface:: LinktypeInterface

   All linktypes handled by the LinkValidator must implement this interface.

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

   .. php:method:: getIdentifier()

      Returns the unique identifier of the linktype

      :returntype: string

   .. php:method:: checkLink(unknown url, unknown softRefEntry, unknown reference)

      Checks a given link for validity

      :param unknown $url: the url
      :param unknown $softRefEntry: the softRefEntry
      :param unknown $reference: the reference

   .. php:method:: setAdditionalConfig(array config)

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

      :param array $config: the config

   .. php:method:: fetchType(unknown value, unknown type, unknown key)

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

      :param unknown $value: the value
      :param unknown $type: the type
      :param unknown $key: the key

   .. php:method:: getErrorParams()

      Get the value of the private property errorParams.


   .. php:method:: getBrokenUrl(unknown row)

      Construct a valid Url for browser output

      :param unknown $row: the row

   .. php:method:: getErrorMessage(unknown errorParams)

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

      :param unknown $errorParams: the errorParams

