You are here

public function ConfigurableLanguageRenderer::getLangcode in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 47
Contains \Drupal\views\Entity\Render\ConfigurableLanguageRenderer.

Class

ConfigurableLanguageRenderer
Renders entities in a configured language.

Namespace

Drupal\views\Entity\Render

Code

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