function EntityTranslationRendererBase::getLangcode
Same name in other branches
- 9 core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::getLangcode()
- 8.9.x core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::getLangcode()
- 10 core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::getLangcode()
Returns the language code associated with the given row.
Parameters
\Drupal\views\ResultRow $row: The result row.
Return value
string A language code.
1 call to EntityTranslationRendererBase::getLangcode()
- EntityTranslationRendererBase::getLangcodeByRelationship in core/
modules/ views/ src/ Entity/ Render/ EntityTranslationRendererBase.php - Returns the language code associated with the given row.
3 methods override EntityTranslationRendererBase::getLangcode()
- ConfigurableLanguageRenderer::getLangcode in core/
modules/ views/ src/ Entity/ Render/ ConfigurableLanguageRenderer.php - Returns the language code associated with the given row.
- DefaultLanguageRenderer::getLangcode in core/
modules/ views/ src/ Entity/ Render/ DefaultLanguageRenderer.php - Returns the language code associated with the given row.
- TranslationLanguageRenderer::getLangcode in core/
modules/ views/ src/ Entity/ Render/ TranslationLanguageRenderer.php - Returns the language code associated with the given row.
File
-
core/
modules/ views/ src/ Entity/ Render/ EntityTranslationRendererBase.php, line 23
Class
- EntityTranslationRendererBase
- Defines a base class for entity translation renderers.
Namespace
Drupal\views\Entity\RenderCode
public abstract function getLangcode(ResultRow $row);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.