You are here

public function ConfigurableLanguageRenderer::__construct in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\ds\Plugin\views\Entity\Render\ConfigurableLanguageRenderer::__construct()
  2. 8.3 src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\ds\Plugin\views\Entity\Render\ConfigurableLanguageRenderer::__construct()

Constructs a renderer object.

Parameters

\Drupal\views\ViewExecutable $view: The entity row being rendered.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

string|null $langcode: A specific language code to set, if available.

Overrides RendererBase::__construct

File

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

Class

ConfigurableLanguageRenderer
Renders entities in a configured language.

Namespace

Drupal\ds\Plugin\views\Entity\Render

Code

public function __construct(ViewExecutable $view, LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, $langcode) {
  parent::__construct($view, $language_manager, $entity_type);
  $this->langcode = $langcode;
}