From 554034ac0c3593460620d636c382b56a03256d8a Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Thu, 21 May 2015 12:05:36 +0100
Subject: [PATCH] Issue #2468565 by eiriksm: Entity type view should provide a
 context for its label

---
 core/modules/views/src/Entity/View.php | 2 +-
 core/modules/views/views.tokens.inc    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/modules/views/src/Entity/View.php b/core/modules/views/src/Entity/View.php
index 6708d5da76c4..b9de0af7ae29 100644
--- a/core/modules/views/src/Entity/View.php
+++ b/core/modules/views/src/Entity/View.php
@@ -20,7 +20,7 @@
  *
  * @ConfigEntityType(
  *   id = "view",
- *   label = @Translation("View"),
+ *   label = @Translation("View", context = "View entity type"),
  *   handlers = {
  *     "access" = "Drupal\views\ViewAccessControlHandler"
  *   },
diff --git a/core/modules/views/views.tokens.inc b/core/modules/views/views.tokens.inc
index 49f326954b51..1e0540b5da60 100644
--- a/core/modules/views/views.tokens.inc
+++ b/core/modules/views/views.tokens.inc
@@ -12,7 +12,7 @@
  */
 function views_token_info() {
   $info['types']['view'] = array(
-    'name' => t('View'),
+    'name' => t('View', [], ['context' => 'View entity type']),
     'description' => t('Tokens related to views.'),
     'needs-data' => 'view',
   );
-- 
GitLab