.. include:: /Includes.rst.txt =========== Development =========== This covers extending Broken Link Fixer via an extension. Examples ======== .. _devOverrideExternalLinktype: Override ExternalLinktype ------------------------- We override the ExternalLinktype class to make some changes in how external link types are checked: #. a specific error type is not treated as error #. some specific domains are not checked .. code-block:: php :caption: ext_localconf.php use Myvendor\MyExtension\Linktype\MyExternalLinktype; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['brofix']['checkLinks']['external'] = MyExternalLinktype::class; .. code-block:: php :caption: Classes/Linktype/MyExternalLinktype.php flags); if (!$isValidUrl) { $exceptionMsg = $this->errorParams->getExceptionMsg(); // highly probably certificate chain issue, which should be treated as edge case false positive // curl(60): 'SSL certificate problem: unable to get local issuer certificate' if ($exceptionMsg === 'SSL certificate problem: unable to get local issuer certificate') { return true; } } return $isValidUrl; } }