You are here

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

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

Constructs a new GatsbyPreview object.

1 call to GatsbyPreview::__construct()
GatsbyInstantPreview::__construct in modules/gatsby_instantpreview/src/GatsbyInstantPreview.php
Constructs a new GatsbyInstantPreview object.
1 method overrides GatsbyPreview::__construct()
GatsbyInstantPreview::__construct in modules/gatsby_instantpreview/src/GatsbyInstantPreview.php
Constructs a new GatsbyInstantPreview object.

File

src/GatsbyPreview.php, line 56

Class

GatsbyPreview
Defines a class for generating Gatsby based previews.

Namespace

Drupal\gatsby

Code

public function __construct(ClientInterface $http_client, ConfigFactoryInterface $config, EntityTypeManagerInterface $entity_type_manager, LoggerChannelFactoryInterface $logger) {
  $this->httpClient = $http_client;
  $this->configFactory = $config;
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger
    ->get('gatsby');
}