AbstractLinktype¶
- abstract class \TYPO3\CMS\Linkvalidator\Linktype\ AbstractLinktype
-
This class provides Check Base plugin implementation
- getIdentifier ( )
-
- returntype
-
string
- 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
- fetchType ( array $value, string $type, string $key)
-
Base type fetching method, based on the type that softRefParserObj returns
- param array $value
-
Reference properties
- param string $type
-
Current type
- param string $key
-
Validator hook name
- returntype
-
string
- Returns:
-
string Fetched type
- getErrorParams ( )
-
Get the value of the private property errorParams
- returntype
-
array
- Returns:
-
array All parameters needed for the rendering of the error message
- getBrokenUrl ( array $row)
-
Construct a valid Url for browser output
- param array $row
-
Broken link record
- returntype
-
string
- Returns:
-
string Parsed broken url
- checkLink ( string $url, array $softRefEntry, TYPO3\\CMS\\Linkvalidator\\LinkAnalyzer $reference)
-
Checks a given link for validity
- param string $url
-
Url to check
- param array $softRefEntry
-
The soft reference entry which builds the context of that url
- param TYPO3\\CMS\\Linkvalidator\\LinkAnalyzer $reference
-
Parent instance
- returntype
-
bool
- Returns:
-
bool TRUE on success or FALSE on error
- getErrorMessage ( array $errorParams)
-
Generate the localized error message from the error params saved from the parsing
- param array $errorParams
-
All parameters needed for the rendering of the error message
- returntype
-
string
- Returns:
-
string Validation error message