You are here

public function ConfigurableLanguageRenderer::getLangcode in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\views\Entity\Render\ConfigurableLanguageRenderer::getLangcode()
  2. 10 core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\views\Entity\Render\ConfigurableLanguageRenderer::getLangcode()

Returns the language code associated with the given row.

Parameters

\Drupal\views\ResultRow $row: The result row.

Return value

string A language code.

Overrides EntityTranslationRendererBase::getLangcode

File

core/modules/views/src/Entity/Render/ConfigurableLanguageRenderer.php, line 42

Class

ConfigurableLanguageRenderer
Renders entities in a configured language.

Namespace

Drupal\views\Entity\Render

Code

public function getLangcode(ResultRow $row) {
  return $this->langcode;
}