You are here

public function ConfigurableLanguageRenderer::getLangcode in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\ds\Plugin\views\Entity\Render\ConfigurableLanguageRenderer::getLangcode()
  2. 8.3 src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\ds\Plugin\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

src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php, line 42

Class

ConfigurableLanguageRenderer
Renders entities in a configured language.

Namespace

Drupal\ds\Plugin\views\Entity\Render

Code

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