Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / content_translation / src / Plugin / views / field / TranslationLink.php
1 <?php
2
3 namespace Drupal\content_translation\Plugin\views\field;
4
5 use Drupal\views\Plugin\views\field\EntityLink;
6
7 /**
8  * Provides a translation link for an entity.
9  *
10  * @ingroup views_field_handlers
11  *
12  * @ViewsField("content_translation_link")
13  */
14 class TranslationLink extends EntityLink {
15
16   /**
17    * {@inheritdoc}
18    */
19   protected function getEntityLinkTemplate() {
20     return 'drupal:content-translation-overview';
21   }
22
23   /**
24    * {@inheritdoc}
25    */
26   protected function getDefaultLabel() {
27     return $this->t('Translate');
28   }
29
30 }