You are here

public function PrivateMessageViewBuilder::__construct in Private Message 8.2

Constructs a PrivateMessageViewBuilder object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity manager service.

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

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

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

\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.

Overrides EntityViewBuilder::__construct

File

src/Entity/Builder/PrivateMessageViewBuilder.php, line 44

Class

PrivateMessageViewBuilder
Build handler for rpivate messages.

Namespace

Drupal\private_message\Entity\Builder

Code

public function __construct(EntityTypeInterface $entityType, EntityRepositoryInterface $entityRepository, LanguageManagerInterface $languageManager, AccountProxyInterface $currentUser, Registry $themeRegistry = NULL, EntityDisplayRepositoryInterface $entity_display_repository) {
  parent::__construct($entityType, $entityRepository, $languageManager, $themeRegistry, $entity_display_repository);
  $this->currentUser = $currentUser;
}