You are here

public function ConfigTranslationBlockListBuilder::getFilterLabels in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::getFilterLabels()
  2. 10 core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php \Drupal\config_translation\Controller\ConfigTranslationBlockListBuilder::getFilterLabels()

Provides user facing strings for the filter element.

Return value

array

Overrides ConfigTranslationEntityListBuilder::getFilterLabels

File

core/modules/config_translation/src/Controller/ConfigTranslationBlockListBuilder.php, line 45

Class

ConfigTranslationBlockListBuilder
Defines the config translation list builder for blocks.

Namespace

Drupal\config_translation\Controller

Code

public function getFilterLabels() {
  $info = parent::getFilterLabels();
  $info['placeholder'] = $this
    ->t('Enter block, theme or category');
  $info['description'] = $this
    ->t('Enter a part of the block, theme or category to filter by.');
  return $info;
}