You are here

public function LingotekFilterManager::getLocallyAvailableFilters in Lingotek Translation 3.8.x

Same name and namespace in other branches
  1. 8.2 src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  2. 4.0.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  3. 3.0.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  4. 3.1.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  5. 3.2.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  6. 3.3.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  7. 3.4.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  8. 3.5.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  9. 3.6.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
  10. 3.7.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()

Get all the locally available filters.

Return value

array Keyed array with filters (id => label)

Overrides LingotekFilterManagerInterface::getLocallyAvailableFilters

4 calls to LingotekFilterManager::getLocallyAvailableFilters()
LingotekFilterManager::getDefaultFilter in src/LingotekFilterManager.php
Get the default filter ID.
LingotekFilterManager::getDefaultFilterLabel in src/LingotekFilterManager.php
Get the default filter label.
LingotekFilterManager::getDefaultSubfilter in src/LingotekFilterManager.php
Get the default subfilter ID.
LingotekFilterManager::getDefaultSubfilterLabel in src/LingotekFilterManager.php
Get the default filter label.

File

src/LingotekFilterManager.php, line 34

Class

LingotekFilterManager
Service for managing Lingotek Filters.

Namespace

Drupal\lingotek

Code

public function getLocallyAvailableFilters() {
  $filters = $this->configFactory
    ->get('lingotek.settings')
    ->get('account.resources.filter');
  $filters['project_default'] = 'Project Default';
  $filters['drupal_default'] = 'Drupal Default';
  return $filters;
}