You are here

abstract public function EntityTranslationRendererBase::getLangcode in Drupal 9

Same name and namespace in other branches
  1. 8 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()

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);