You are here

public function GatsbyInstantPreview::__construct in Gatsby Live Preview & Incremental Builds 8

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

Constructs a new GatsbyInstantPreview object.

Overrides GatsbyPreview::__construct

File

modules/gatsby_instantpreview/src/GatsbyInstantPreview.php, line 45

Class

GatsbyInstantPreview
Defines a class to extend the default preview system with an instant preview.

Namespace

Drupal\gatsby_instantpreview

Code

public function __construct(GatsbyPreview $inner_service, ClientInterface $http_client, ConfigFactoryInterface $config, EntityTypeManagerInterface $entity_type_manager, LoggerChannelFactoryInterface $logger, EntityToJsonApi $entity_to_json_api, EntityRepository $entity_repository) {
  $this->innerService = $inner_service;
  $this->entityToJsonApi = $entity_to_json_api;
  $this->entityRepository = $entity_repository;
  parent::__construct($http_client, $config, $entity_type_manager, $logger);
}