Mercurial > hg > isophonics-drupal-site
comparison core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\views\Entity\Render; | |
4 | |
5 use Drupal\views\ResultRow; | |
6 | |
7 /** | |
8 * Renders entities in their default language. | |
9 */ | |
10 class DefaultLanguageRenderer extends EntityTranslationRendererBase { | |
11 | |
12 /** | |
13 * {@inheritdoc} | |
14 */ | |
15 public function getLangcode(ResultRow $row) { | |
16 return $row->_entity->getUntranslated()->language()->getId(); | |
17 } | |
18 | |
19 } |