public function ConfigurableLanguageRenderer::__construct in Display Suite 8.4
Same name and namespace in other branches
- 8.2 src/Plugin/views/Entity/Render/ConfigurableLanguageRenderer.php \Drupal\ds\Plugin\views\Entity\Render\ConfigurableLanguageRenderer::__construct()
- 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\RenderCode
public function __construct(ViewExecutable $view, LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, $langcode) {
parent::__construct($view, $language_manager, $entity_type);
$this->langcode = $langcode;
}