You are here

interface TaxonomyViewsIntegratorManagerInterface in Taxonomy Views Integrator 8

Define API for returning a view assigned to a taxonomy term or vocabulary.

Hierarchy

Expanded class hierarchy of TaxonomyViewsIntegratorManagerInterface

All classes that implement TaxonomyViewsIntegratorManagerInterface

2 files declare their use of TaxonomyViewsIntegratorManagerInterface
RouteEnhancer.php in src/Enhancer/RouteEnhancer.php
TaxonomyViewsIntegratorTermPageController.php in src/Controller/TaxonomyViewsIntegratorTermPageController.php

File

src/Service/TaxonomyViewsIntegratorManagerInterface.php, line 10

Namespace

Drupal\tvi\Service
View source
interface TaxonomyViewsIntegratorManagerInterface {

  /**
   * Return the taxonomy term View per taxonomy view integrator settings.
   *
   * @param \Drupal\taxonomy\TermInterface $taxonomy_term
   *   The term to render the view for.
   *
   * @return array
   *   Views results render array.
   */
  public function getTaxonomyTermView(TermInterface $taxonomy_term);

  /**
   * Return array with view and display id for current term based on settings.
   *
   * @param \Drupal\taxonomy\TermInterface $taxonomy_term
   *   An object with term entity.
   *
   * @return array
   *   An array with view_id and display_id for current term.
   */
  public function getTaxonomyTermViewAndDisplayId(TermInterface $taxonomy_term);

}

Members

Namesort descending Modifiers Type Description Overrides
TaxonomyViewsIntegratorManagerInterface::getTaxonomyTermView public function Return the taxonomy term View per taxonomy view integrator settings. 1
TaxonomyViewsIntegratorManagerInterface::getTaxonomyTermViewAndDisplayId public function Return array with view and display id for current term based on settings. 1