public function ConfigurableLanguageRenderer::__construct in Views Parity Row 8
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 37
Class
- ConfigurableLanguageRenderer
- Renders entities in a configured language.
Namespace
Drupal\views_parity_row\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;
}