diff core/modules/views/src/EntityViewsData.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line diff
--- a/core/modules/views/src/EntityViewsData.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/views/src/EntityViewsData.php	Thu May 09 15:33:08 2019 +0100
@@ -250,6 +250,13 @@
         'help' => $this->t('Restrict the view to only revisions that are the latest revision of their entity.'),
         'filter' => ['id' => 'latest_revision'],
       ];
+      if ($this->entityType->isTranslatable()) {
+        $data[$revision_table]['latest_translation_affected_revision'] = [
+          'title' => $this->t('Is Latest Translation Affected Revision'),
+          'help' => $this->t('Restrict the view to only revisions that are the latest translation affected revision of their entity.'),
+          'filter' => ['id' => 'latest_translation_affected_revision'],
+        ];
+      }
     }
 
     $this->addEntityLinks($data[$base_table]);