You are here

protected function TranslationLink::getDefaultLabel in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 31
Contains \Drupal\content_translation\Plugin\views\field\TranslationLink.

Class

TranslationLink
Provides a translation link for an entity.

Namespace

Drupal\content_translation\Plugin\views\field

Code

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