public function TranslationLanguageRenderer::getLangcode in Views Parity Row 8
File
- src/
Plugin/ views/ Entity/ Render/ TranslationLanguageRenderer.php, line 25
Class
- TranslationLanguageRenderer
- Renders entities in the current language.
Namespace
Drupal\views_parity_row\Plugin\views\Entity\RenderCode
public function getLangcode(ResultRow $row) {
return isset($row->{$this->langcodeAlias}) ? $row->{$this->langcodeAlias} : $this->languageManager
->getCurrentLanguage()
->getId();
}