Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityTranslationRendererBase.php

function 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::getLangcodeByRelationship in core/modules/views/src/Entity/Render/EntityTranslationRendererBase.php
Returns the language code associated with the given row.
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 23

Class

EntityTranslationRendererBase
Defines a base class for entity translation renderers.

Namespace

Drupal\views\Entity\Render

Code

public abstract function getLangcode(ResultRow $row);
RSS feed
Powered by Drupal