function ConfigTranslationFieldListBuilder::getFilterLabels
Same name and namespace in other branches
- 9 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::getFilterLabels()
- 10 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::getFilterLabels()
- 11.x core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::getFilterLabels()
Overrides ConfigTranslationEntityListBuilder::getFilterLabels
File
-
core/
modules/ config_translation/ src/ Controller/ ConfigTranslationFieldListBuilder.php, line 120
Class
- ConfigTranslationFieldListBuilder
- Defines the config translation list builder for field entities.
Namespace
Drupal\config_translation\ControllerCode
public function getFilterLabels() {
$info = parent::getFilterLabels();
$bundle = $this->baseEntityInfo
->getBundleLabel() ?: $this->t('Bundle');
$bundle = mb_strtolower($bundle);
$info['placeholder'] = $this->t('Enter field or @bundle', [
'@bundle' => $bundle,
]);
$info['description'] = $this->t('Enter a part of the field or @bundle to filter by.', [
'@bundle' => $bundle,
]);
return $info;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.