You are here

public function PostViewBuilder::__construct in Open Social 8.4

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  2. 8.2 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  3. 8.3 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  4. 8.5 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  5. 8.6 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  6. 8.7 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  7. 8.8 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  8. 10.3.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  9. 10.0.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  10. 10.1.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
  11. 10.2.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()

Constructs a new EntityViewBuilder.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

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

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

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

\Drupal\social_group\SocialGroupHelperService $social_group_helper_service: The social group helper service.

Overrides EntityViewBuilder::__construct

File

modules/social_features/social_post/src/PostViewBuilder.php, line 43

Class

PostViewBuilder
Render controller for posts.

Namespace

Drupal\social_post

Code

public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, Registry $theme_registry = NULL, SocialGroupHelperService $social_group_helper_service) {
  parent::__construct($entity_type, $entity_manager, $language_manager, $theme_registry);
  $this->socialGroupHelperService = $social_group_helper_service;
}