‪TYPO3CMS  ‪main
TYPO3\CMS\Redirects\Evaluation\SourceHost Class Reference

Public Member Functions

 returnFieldJS ()
 
string evaluateFieldValue (string $value)
 

Protected Member Functions

 parseUrl (string $value)
 

Detailed Description

Class SourceHost Triggered from DataHandler as TCA formevals hook for validation / sanitation of domain values.

Definition at line 29 of file SourceHost.php.

Member Function Documentation

◆ evaluateFieldValue()

string TYPO3\CMS\Redirects\Evaluation\SourceHost::evaluateFieldValue ( string  $value)

Server-side removing of protocol on save

Parameters
string$value‪The field value to be evaluated
Returns
‪string Evaluated field value

Definition at line 50 of file SourceHost.php.

References TYPO3\CMS\Core\Utility\PathUtility\hasProtocolAndScheme(), and TYPO3\CMS\Redirects\Evaluation\SourceHost\parseUrl().

◆ parseUrl()

TYPO3\CMS\Redirects\Evaluation\SourceHost::parseUrl ( string  $value)
protected

◆ returnFieldJS()

TYPO3\CMS\Redirects\Evaluation\SourceHost::returnFieldJS ( )

Returns JavaScript instruction for client side validation/evaluation (invoked by FormEngine when editing redirect entities).

Returned JavaScriptModuleInstruction delegates handling to corresponding JavaScript module, having a method evaluateSourceHost that deals with that evaluation request.

Definition at line 39 of file SourceHost.php.

References TYPO3\CMS\Core\Page\JavaScriptModuleInstruction\create().