GravityKit\GravityView\Renderer\FieldRenderer
The Field Renderer class.
Houses some preliminary \GV\Field rendering functionality.
Since:
2.03.0.0(Migrated to GravityKit\GravityView\Renderer namespace.)
Source: src/Renderer/FieldRenderer.php:29
Details
- Kind:
class - Namespace:
GravityKit\GravityView\Renderer - Extends:
GV\Renderer
Methods
| Method | Description |
|---|---|
render() | Renders a \GV\Field instance. |
Method Reference
render()
public function render( Field $field, ?View $view=null, ?Source $source=null, ?Entry $entry=null, ?Request $request=null, $class='\GV\Field_HTML_Template' )
Renders a \GV\Field instance.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$field | Field | ||
$view | \GV\View | null | The view for this context if applicable. |
$source | \GV\Source | null | The source (form) for this context if applicable. |
$entry | \GV\Entry | null | The entry for this context if applicable. |
$request | \GV\Request | null | The request for this context if applicable. |
$class | string | '\GV\Field_HTML_Template' | The field template class. Default: \GV\Field_HTML_Template'. |
Returns
string— The rendered Field
Since:
2.02.1(Added Field Template class $class parameter)
Source: src/Renderer/FieldRenderer.php:47