You are here

protected function TranslationLink::getDefaultLabel in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_translation/src/Plugin/views/field/TranslationLink.php \Drupal\content_translation\Plugin\views\field\TranslationLink::getDefaultLabel()
  2. 10 core/modules/content_translation/src/Plugin/views/field/TranslationLink.php \Drupal\content_translation\Plugin\views\field\TranslationLink::getDefaultLabel()

Returns the default label for this link.

Return value

string The default link label.

Overrides EntityLink::getDefaultLabel

File

core/modules/content_translation/src/Plugin/views/field/TranslationLink.php, line 26

Class

TranslationLink
Provides a translation link for an entity.

Namespace

Drupal\content_translation\Plugin\views\field

Code

protected function getDefaultLabel() {
  return $this
    ->t('Translate');
}