function DefaultLanguageRenderer::getLangcode
Same name in other branches
- 9 core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php \Drupal\views\Entity\Render\DefaultLanguageRenderer::getLangcode()
- 8.9.x core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php \Drupal\views\Entity\Render\DefaultLanguageRenderer::getLangcode()
- 10 core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php \Drupal\views\Entity\Render\DefaultLanguageRenderer::getLangcode()
Overrides EntityTranslationRendererBase::getLangcode
File
-
core/
modules/ views/ src/ Entity/ Render/ DefaultLanguageRenderer.php, line 15
Class
- DefaultLanguageRenderer
- Renders entities in their default language.
Namespace
Drupal\views\Entity\RenderCode
public function getLangcode(ResultRow $row) {
return $row->_entity
->getUntranslated()
->language()
->getId();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.