You are here

public function TaxonomyViewsIntegratorTermPageController::render in Taxonomy Views Integrator 8

Render the page for a given term.

Parameters

\Drupal\taxonomy\TermInterface $taxonomy_term: The term to render the view for.

Return value

\Symfony\Component\HttpFoundation\Response Views results render array.

File

src/Controller/TaxonomyViewsIntegratorTermPageController.php, line 49

Class

TaxonomyViewsIntegratorTermPageController
Render views for taxonomy term pages.

Namespace

Drupal\tvi\Controller

Code

public function render(TermInterface $taxonomy_term) {
  return $this->termDisplayManager
    ->getTaxonomyTermView($taxonomy_term);
}