Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 4 |
| TranslationLink | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 4 |
| getEntityLinkTemplate | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getDefaultLabel | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\content_translation\Plugin\views\field\TranslationLink. | |
| */ | |
| namespace Drupal\content_translation\Plugin\views\field; | |
| use Drupal\views\Plugin\views\field\EntityLink; | |
| /** | |
| * Provides a translation link for an entity. | |
| * | |
| * @ingroup views_field_handlers | |
| * | |
| * @ViewsField("content_translation_link") | |
| */ | |
| class TranslationLink extends EntityLink { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function getEntityLinkTemplate() { | |
| return 'drupal:content-translation-overview'; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| protected function getDefaultLabel() { | |
| return $this->t('Translate'); | |
| } | |
| } |