/** * Constructs an EntityFieldRenderer object. * * @param \Drupal\views\ViewExecutable $view * The view whose fields are being rendered. * @param string $relationship * The relationship to be handled. * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * The language manager. * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. */ public function __construct(ViewExecutable $view, $relationship, LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager) { parent::__construct($view, $language_manager, $entity_type); $this->relationship = $relationship; $this->entityManager = $entity_manager; }
/** * Constructs a renderer object. * * @param \Drupal\views\ViewExecutable $view * The entity row being rendered. * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager * The language manager. * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * @param string|null $langcode * A specific language code to set, if available. */ public function __construct(ViewExecutable $view, LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, $langcode) { parent::__construct($view, $language_manager, $entity_type); $this->langcode = $langcode; }