public function ConfigTranslationFieldListBuilder::getFilterLabels in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config_translation/src/Controller/ConfigTranslationFieldListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationFieldListBuilder::getFilterLabels()
Provides user facing strings for the filter element.
Return value
array
Overrides ConfigTranslationEntityListBuilder::getFilterLabels
File
- core/
modules/ config_translation/ src/ Controller/ ConfigTranslationFieldListBuilder.php, line 109
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;
}