ConfigTranslationFieldListBuilder::getFilterLabels

public 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 97

Class

ConfigTranslationFieldListBuilder
Defines the config translation list builder for field entities.

Namespace

Drupal\config_translation\Controller

Code

public function getFilterLabels() {
  $info = parent::getFilterLabels();
  $bundle = $this->baseEntityInfo->getBundleLabel() ? : $this->t('Bundle');
  $bundle = Unicode::strtolower($bundle);

  $info['placeholder'] = $this->t('Enter field or @bundle', array('@bundle' => $bundle));
  $info['description'] = $this->t('Enter a part of the field or @bundle to filter by.', array('@bundle' => $bundle));

  return $info;
}
doc_Drupal
2016-10-29 08:54:55
Comments
Leave a Comment

Please login to continue.