You are here

protected function TranslationLink::getDefaultLabel in Drupal 9

Same name and namespace in other branches
  1. 8 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');
}