Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views/src/EntityViewsData.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
line wrap: on
line diff
--- a/core/modules/views/src/EntityViewsData.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/views/src/EntityViewsData.php Thu May 09 15:34:47 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]);