function TranslationLink::getDefaultLabel

Same name in other branches
  1. 9 core/modules/content_translation/src/Plugin/views/field/TranslationLink.php \Drupal\content_translation\Plugin\views\field\TranslationLink::getDefaultLabel()
  2. 8.9.x core/modules/content_translation/src/Plugin/views/field/TranslationLink.php \Drupal\content_translation\Plugin\views\field\TranslationLink::getDefaultLabel()
  3. 11.x core/modules/content_translation/src/Plugin/views/field/TranslationLink.php \Drupal\content_translation\Plugin\views\field\TranslationLink::getDefaultLabel()

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.