class DefaultLanguageRenderer in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php \Drupal\views\Entity\Render\DefaultLanguageRenderer
- 9 core/modules/views/src/Entity/Render/DefaultLanguageRenderer.php \Drupal\views\Entity\Render\DefaultLanguageRenderer
Renders entities in their default language.
Hierarchy
- class \Drupal\views\Entity\Render\RendererBase implements CacheableDependencyInterface
- class \Drupal\views\Entity\Render\EntityTranslationRendererBase
- class \Drupal\views\Entity\Render\DefaultLanguageRenderer
- class \Drupal\views\Entity\Render\EntityTranslationRendererBase
Expanded class hierarchy of DefaultLanguageRenderer
1 string reference to 'DefaultLanguageRenderer'
- EntityTranslationRenderTrait::getEntityTranslationRenderer in core/
modules/ views/ src/ Entity/ Render/ EntityTranslationRenderTrait.php - Returns the current renderer.
File
- core/
modules/ views/ src/ Entity/ Render/ DefaultLanguageRenderer.php, line 10
Namespace
Drupal\views\Entity\RenderView source
class DefaultLanguageRenderer extends EntityTranslationRendererBase {
/**
* {@inheritdoc}
*/
public function getLangcode(ResultRow $row) {
return $row->_entity
->getUntranslated()
->language()
->getId();
}
}