RendererInterface
Base interface for Renderers. A Renderer is used to render a form.
Scope: frontend This interface is meant to be implemented by developers, although often you will subclass AbstractElementRenderer ().
Table of Contents
Methods
- getFormRuntime() : FormRuntime
- render() : string
- Note: This method is expected to call the 'beforeRendering' hook on each $renderable
- setControllerContext() : mixed
- Set the controller context which should be used
- setFormRuntime() : mixed
Methods
getFormRuntime()
public
getFormRuntime() : FormRuntime
Return values
FormRuntimerender()
Note: This method is expected to call the 'beforeRendering' hook on each $renderable
public
render() : string
Return values
string —the rendered $formRuntime
setControllerContext()
Set the controller context which should be used
public
setControllerContext(ControllerContext $controllerContext) : mixed
since v11, will be removed with v12.
Parameters
- $controllerContext : ControllerContext
setFormRuntime()
public
setFormRuntime(FormRuntime $formRuntime) : mixed
Parameters
- $formRuntime : FormRuntime