You are here

public function ReferenceViewBuilder::__construct in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/ReferenceViewBuilder.php \Drupal\bibcite_entity\ReferenceViewBuilder::__construct()

Constructs a new EntityViewBuilder.

Parameters

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

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

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

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

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

Overrides EntityViewBuilder::__construct

File

modules/bibcite_entity/src/ReferenceViewBuilder.php, line 38

Class

ReferenceViewBuilder
Reference entity view builder.

Namespace

Drupal\bibcite_entity

Code

public function __construct(EntityTypeInterface $entity_type, NormalizerInterface $serializer, ConfigFactoryInterface $config_factory, EntityRepositoryInterface $entity_repository, LanguageManagerInterface $language_manager, Registry $theme_registry = NULL, EntityDisplayRepositoryInterface $entity_display_repository = NULL) {
  parent::__construct($entity_type, $entity_repository, $language_manager, $theme_registry, $entity_display_repository);
  $this->serializer = $serializer;
  $this->configFactory = $config_factory;
}