public function LingotekFilterManager::getLocallyAvailableFilters in Lingotek Translation 3.1.x
Same name and namespace in other branches
- 8.2 src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 4.0.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.0.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.2.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.3.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.4.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.5.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.6.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.7.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getLocallyAvailableFilters()
- 3.8.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\lingotekCode
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;
}