You are here

public function PrivateMessageThreadViewBuilder::__construct in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Builder/PrivateMessageThreadViewBuilder.php \Drupal\private_message\Entity\Builder\PrivateMessageThreadViewBuilder::__construct()

Constructs a PrivateMessageThreadViewBuilder object.

Parameters

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

\Drupal\Core\Entity\EntityManagerInterface $entityManager: The entity manager service.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager service.

\Drupal\Core\Theme\Registry $themeRegistry: The theme register.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

Overrides EntityViewBuilder::__construct

File

src/Entity/Builder/PrivateMessageThreadViewBuilder.php, line 71

Class

PrivateMessageThreadViewBuilder
Build handler for rpivate message threads.

Namespace

Drupal\private_message\Entity\Builder

Code

public function __construct(EntityTypeInterface $entityType, EntityManagerInterface $entityManager, LanguageManagerInterface $languageManager, Registry $themeRegistry, AccountProxyInterface $currentUser) {
  parent::__construct($entityType, $entityManager, $languageManager, $themeRegistry);
  $this->currentUser = $currentUser;
}