BeforeRenderTextEvent
final class \
- Implements
- StoppableEventInterface
Allows listeners to take over rendering of a validated text field before escaping or rich-text processing. Providing a result stops propagation and skips the ViewHelper's default rendering.
Table of Contents
Interfaces
- StoppableEventInterface
Methods
- __construct() : mixed
- getFieldName() : string
- getFieldSchema() : InputFieldType|TextFieldType
- getFullType() : string
- getRecord() : RecordInterface|DomainObjectInterface
- getRenderedText() : UnsafeHTML|null
- getRequest() : ServerRequestInterface|null
- getTable() : string
- getValue() : string
- isPropagationStopped() : bool
- setRenderedText() : void
- The result must contain appropriately escaped or sanitized HTML.
Methods
__construct()
public
__construct(RecordInterface|DomainObjectInterface $record, string $table, string $fullType, InputFieldType|TextFieldType $fieldSchema, string $value, ServerRequestInterface|null $request) : mixed
Parameters
- $record : RecordInterface|DomainObjectInterface
- $table : string
- $fullType : string
- $fieldSchema : InputFieldType|TextFieldType
- $value : string
- $request : ServerRequestInterface|null
getFieldName()
public
getFieldName() : string
Return values
stringgetFieldSchema()
public
getFieldSchema() : InputFieldType|TextFieldType
Return values
InputFieldType|TextFieldTypegetFullType()
public
getFullType() : string
Return values
stringgetRecord()
public
getRecord() : RecordInterface|DomainObjectInterface
Return values
RecordInterface|DomainObjectInterfacegetRenderedText()
public
getRenderedText() : UnsafeHTML|null
Return values
UnsafeHTML|nullgetRequest()
public
getRequest() : ServerRequestInterface|null
Return values
ServerRequestInterface|nullgetTable()
public
getTable() : string
Return values
stringgetValue()
public
getValue() : string
Return values
stringisPropagationStopped()
public
isPropagationStopped() : bool
Return values
boolsetRenderedText()
The result must contain appropriately escaped or sanitized HTML.
public
setRenderedText(UnsafeHTML $renderedText) : void
Parameters
- $renderedText : UnsafeHTML