TranslationLink.php
Same filename and directory in other branches
- 11.x core/modules/content_translation/src/Plugin/views/field/TranslationLink.php
- 10 core/modules/content_translation/src/Plugin/views/field/TranslationLink.php
- 9 core/modules/content_translation/src/Plugin/views/field/TranslationLink.php
- 8.9.x core/modules/content_translation/src/Plugin/views/field/TranslationLink.php
Namespace
Drupal\content_translation\Plugin\views\fieldFile
-
core/
modules/ content_translation/ src/ Plugin/ views/ field/ TranslationLink.php
View source
<?php
namespace Drupal\content_translation\Plugin\views\field;
use Drupal\views\Attribute\ViewsField;
use Drupal\views\Plugin\views\field\EntityLink;
/**
* Provides a translation link for an entity.
*
* @ingroup views_field_handlers
*/
class TranslationLink extends EntityLink {
/**
* {@inheritdoc}
*/
protected function getEntityLinkTemplate() {
return 'drupal:content-translation-overview';
}
/**
* {@inheritdoc}
*/
protected function getDefaultLabel() {
return $this->t('Translate');
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| TranslationLink | Provides a translation link for an entity. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.