SourceHost
Class SourceHost Triggered from DataHandler as TCA formevals hook for validation / sanitation of domain values.
Table of Contents
Methods
- evaluateFieldValue() : string
- Server-side removing of protocol on save
- returnFieldJS() : JavaScriptModuleInstruction
- Returns JavaScript instruction for client side validation/evaluation (invoked by FormEngine when editing redirect entities).
- parseUrl() : string
Methods
evaluateFieldValue()
Server-side removing of protocol on save
public
evaluateFieldValue(string $value) : string
Parameters
- $value : string
-
The field value to be evaluated
Return values
string —Evaluated field value
returnFieldJS()
Returns JavaScript instruction for client side validation/evaluation (invoked by FormEngine when editing redirect entities).
public
returnFieldJS() : JavaScriptModuleInstruction
Returned JavaScriptModuleInstruction
delegates handling to corresponding
RequireJS module, having a method evaluateSourceHost
that deals with that
evaluation request.
Return values
JavaScriptModuleInstructionparseUrl()
protected
parseUrl(string $value) : string
Parameters
- $value : string