function EntityTranslationRendererBase::getLangcode

Same name in other branches
  1. 8.9.x core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::getLangcode()
  2. 10 core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php \Drupal\views\Entity\Render\EntityTranslationRendererBase::getLangcode()
  3. 11.x 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::preRender in core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php
Runs before each entity is rendered.
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 22

Class

EntityTranslationRendererBase
Defines a base class for entity translation renderers.

Namespace

Drupal\views\Entity\Render

Code

public abstract function getLangcode(ResultRow $row);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.