Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
248 $data[$revision_table]['latest_revision'] = [ | 248 $data[$revision_table]['latest_revision'] = [ |
249 'title' => $this->t('Is Latest Revision'), | 249 'title' => $this->t('Is Latest Revision'), |
250 'help' => $this->t('Restrict the view to only revisions that are the latest revision of their entity.'), | 250 'help' => $this->t('Restrict the view to only revisions that are the latest revision of their entity.'), |
251 'filter' => ['id' => 'latest_revision'], | 251 'filter' => ['id' => 'latest_revision'], |
252 ]; | 252 ]; |
253 if ($this->entityType->isTranslatable()) { | |
254 $data[$revision_table]['latest_translation_affected_revision'] = [ | |
255 'title' => $this->t('Is Latest Translation Affected Revision'), | |
256 'help' => $this->t('Restrict the view to only revisions that are the latest translation affected revision of their entity.'), | |
257 'filter' => ['id' => 'latest_translation_affected_revision'], | |
258 ]; | |
259 } | |
253 } | 260 } |
254 | 261 |
255 $this->addEntityLinks($data[$base_table]); | 262 $this->addEntityLinks($data[$base_table]); |
256 if ($views_revision_base_table) { | 263 if ($views_revision_base_table) { |
257 $this->addEntityLinks($data[$views_revision_base_table]); | 264 $this->addEntityLinks($data[$views_revision_base_table]); |