GravityKit\GravityView\Elementor\Renderers\WidgetRenderer
Widget Renderer
Source: src/Renderers/WidgetRenderer.php:26
Details
- Kind:
class - Namespace:
GravityKit\GravityView\Elementor\Renderers
Methods
| Method | Description |
|---|---|
__construct() | Initializes the renderer. |
filter_view_collection_from_post() | Adds the widgets to the View collection. |
render() | Renders the widget. |
modify_pagination_args() | Modifies pagination arguments. |
modify_back_link_url() | Modifies the back link URL to return anything; that way, it appears in Single Entry preview. |
return_true() | Returns true function for filters. |
Method Reference
__construct()
public function __construct( $widget )
Initializes the renderer.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$widget | ViewWidget | Widget instance. |
Since: TBD
Source: src/Renderers/WidgetRenderer.php:43
filter_view_collection_from_post()
public function filter_view_collection_from_post( $view_collection, $post )
Adds the widgets to the View collection.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$view_collection | View_Collection | The View collection. | |
$post | WP_Post | The post. |
Returns
View_Collection— The View collection, with any found Views added.
Since: TBD
Source: src/Renderers/WidgetRenderer.php:59
render()
public function render()
Renders the widget.
Since: TBD
Source: src/Renderers/WidgetRenderer.php:155
modify_pagination_args()
public function modify_pagination_args( $args )
Modifies pagination arguments.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$args | array | Pagination arguments. |
Returns
array— Modified pagination arguments.
Since: TBD
Source: src/Renderers/WidgetRenderer.php:491
modify_back_link_url()
public function modify_back_link_url()
Modifies the back link URL to return anything; that way, it appears in Single Entry preview.
Returns
string— Modified back link URL.
Since: TBD
Source: src/Renderers/WidgetRenderer.php:526
return_true()
public function return_true()
Returns true function for filters.
Used instead of __return_true() to avoid conflicts with other plugins.
Returns
bool— Always returns true
Since: TBD
Source: src/Renderers/WidgetRenderer.php:539