diff --git a/core/modules/comment/comment.views.inc b/core/modules/comment/comment.views.inc index df64ab5..8f5b186 100644 --- a/core/modules/comment/comment.views.inc +++ b/core/modules/comment/comment.views.inc @@ -383,7 +383,6 @@ function comment_views_data() { 'help' => t('Provide a link to the translations overview for comments.'), 'field' => array( 'id' => 'translation_entity_link', - 'click sortable' => FALSE, ), ); } diff --git a/core/modules/node/node.views.inc b/core/modules/node/node.views.inc index 8784489..d3fb851 100644 --- a/core/modules/node/node.views.inc +++ b/core/modules/node/node.views.inc @@ -233,7 +233,6 @@ function node_views_data() { 'help' => t('Provide a link to the translations overview for nodes.'), 'field' => array( 'id' => 'translation_entity_link', - 'click sortable' => FALSE, ), ); } diff --git a/core/modules/taxonomy/taxonomy.views.inc b/core/modules/taxonomy/taxonomy.views.inc index 24f36c9..d683d68 100644 --- a/core/modules/taxonomy/taxonomy.views.inc +++ b/core/modules/taxonomy/taxonomy.views.inc @@ -183,7 +183,6 @@ function taxonomy_views_data() { 'help' => t('Provide a link to the translations overview for taxonomy terms.'), 'field' => array( 'id' => 'translation_entity_link', - 'click sortable' => FALSE, ), ); } diff --git a/core/modules/translation_entity/lib/Drupal/translation_entity/Plugin/views/field/TranslationLink.php b/core/modules/translation_entity/lib/Drupal/translation_entity/Plugin/views/field/TranslationLink.php index 93ccd32..aa877fe 100644 --- a/core/modules/translation_entity/lib/Drupal/translation_entity/Plugin/views/field/TranslationLink.php +++ b/core/modules/translation_entity/lib/Drupal/translation_entity/Plugin/views/field/TranslationLink.php @@ -55,6 +55,7 @@ function render($values) { * Alters the field to render a link. * * @param \Drupal\Core\Entity\EntityInterface $entity + * The entity being rendered. * @param \stdClass $values * The current row of the views result. * @@ -79,4 +80,11 @@ public function render_link(EntityInterface $entity, \stdClass $values) { public function query() { } + /** + * Overrides \Drupal\views\Plugin\views\Plugin\field\FieldPluginBase::click_sortable(). + */ + public function click_sortable() { + return FALSE; + } + } diff --git a/core/modules/user/user.views.inc b/core/modules/user/user.views.inc index eaa2117..4107938 100644 --- a/core/modules/user/user.views.inc +++ b/core/modules/user/user.views.inc @@ -302,7 +302,6 @@ function user_views_data() { 'help' => t('Provide a link to the translations overview for users.'), 'field' => array( 'id' => 'translation_entity_link', - 'click sortable' => FALSE, ), ); }