You are here

public function TaxonomyViewsIntegratorManager::getTermConfigSettings in Taxonomy Views Integrator 8

Get the taxonomy view integrator settings for this term entity.

Parameters

\Drupal\taxonomy\TermInterface $taxonomy_term: Active taxonomy term.

Return value

\Drupal\Core\Config\Config TVI config for the term.

2 calls to TaxonomyViewsIntegratorManager::getTermConfigSettings()
TaxonomyViewsIntegratorManager::getTaxonomyTermView in src/Service/TaxonomyViewsIntegratorManager.php
Return the taxonomy term View per taxonomy view integrator settings.
TaxonomyViewsIntegratorManager::getTaxonomyTermViewAndDisplayId in src/Service/TaxonomyViewsIntegratorManager.php
Return array with view and display id for current term based on settings.

File

src/Service/TaxonomyViewsIntegratorManager.php, line 73

Class

TaxonomyViewsIntegratorManager
Default implementation of TaxonomyViewsIntegratorManagerInterface.

Namespace

Drupal\tvi\Service

Code

public function getTermConfigSettings(TermInterface $taxonomy_term) {
  return $this->config
    ->get('tvi.taxonomy_term.' . $taxonomy_term
    ->id());
}