You are here

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

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

Constructs a new GatsbyEntityLogger object.

File

modules/gatsby_fastbuilds/src/GatsbyEntityLogger.php, line 40

Class

GatsbyEntityLogger
Defines a service for logging content entity changes using log entities.

Namespace

Drupal\gatsby_fastbuilds

Code

public function __construct(ConfigFactoryInterface $config, EntityTypeManagerInterface $entity_type_manager, GatsbyInstantPreview $gatsbyInstantPreview) {
  $this->config = $config
    ->get('gatsby.settings');
  $this->entityTypeManager = $entity_type_manager;
  $this->gatsbyInstantPreview = $gatsbyInstantPreview;
}