Widget_Abstract::setup_view( TribeEventsViewsV2Widgetsarray $_deprecated )

Setup the view for the widget.


Parameters

$_deprecated

(<span class="TribeEventsViewsV2Widgetsarray">TribeEventsViewsV2Widgetsarray) (Required) The widget arguments, as set by the user in the widget string.


Top ↑

Source

File: src/Tribe/Views/V2/Widgets/Widget_Abstract.php

	public function setup_view( $_deprecated ) {
		$context = tribe_context();

		// Modifies the Context for the widget params.
		$context = $this->alter_context( $context, $this->get_arguments() );

		// Setup the view instance.
		$view = View::make( $this->get_view_slug(), $context );

		$view->get_template()->set_values( $this->get_arguments(), false );

		$this->set_view( $view );

		// Ensure widgets never get Filter Bar classes on their containers.
		add_filter( "tribe_events_views_v2_filter_bar_{$this->view_slug}_view_html_classes", '__return_false' );
	}

Top ↑

Changelog

Changelog
Version Description
5.5.0 Deprecated $arguments param since it should come from the instance.
5.3.0 Correct asset enqueue method.
5.2.1 Introduced.