public function PostViewBuilder::__construct in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 8.2 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 8.3 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 8.4 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 8.5 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 8.7 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 8.8 modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 10.3.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 10.0.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 10.1.x modules/social_features/social_post/src/PostViewBuilder.php \Drupal\social_post\PostViewBuilder::__construct()
- 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_postCode
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;
}