public function LingotekFilterManager::getDefaultSubfilterLabel in Lingotek Translation 3.3.x
Same name and namespace in other branches
- 8.2 src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 4.0.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.0.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.1.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.2.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.4.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.5.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.6.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.7.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
- 3.8.x src/LingotekFilterManager.php \Drupal\lingotek\LingotekFilterManager::getDefaultSubfilterLabel()
Get the default filter label.
Return value
string ID of the default filter.
Overrides LingotekFilterManagerInterface::getDefaultSubfilterLabel
File
- src/
LingotekFilterManager.php, line 81
Class
- LingotekFilterManager
- Service for managing Lingotek Filters.
Namespace
Drupal\lingotekCode
public function getDefaultSubfilterLabel() {
$label = '';
$filter = $this
->getDefaultSubfilter();
$filters = $this
->getLocallyAvailableFilters();
if (isset($filters[$filter])) {
$label = $filters[$filter];
}
return $label;
}