You are here

public function AcsfDuplicationScrubEntityHandler::__construct in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/Event/AcsfDuplicationScrubEntityHandler.php \Drupal\acsf\Event\AcsfDuplicationScrubEntityHandler::__construct()

Constructor.

Parameters

AcsfEvent $event: The event that has been initiated.

Overrides AcsfEventHandler::__construct

3 calls to AcsfDuplicationScrubEntityHandler::__construct()
AcsfDuplicationScrubCommentHandler::__construct in src/Event/AcsfDuplicationScrubCommentHandler.php
Constructor.
AcsfDuplicationScrubNodeHandler::__construct in src/Event/AcsfDuplicationScrubNodeHandler.php
Constructor.
AcsfDuplicationScrubUserHandler::__construct in src/Event/AcsfDuplicationScrubUserHandler.php
Constructor.
3 methods override AcsfDuplicationScrubEntityHandler::__construct()
AcsfDuplicationScrubCommentHandler::__construct in src/Event/AcsfDuplicationScrubCommentHandler.php
Constructor.
AcsfDuplicationScrubNodeHandler::__construct in src/Event/AcsfDuplicationScrubNodeHandler.php
Constructor.
AcsfDuplicationScrubUserHandler::__construct in src/Event/AcsfDuplicationScrubUserHandler.php
Constructor.

File

src/Event/AcsfDuplicationScrubEntityHandler.php, line 59

Class

AcsfDuplicationScrubEntityHandler
Handles the scrubbing of Drupal entities.

Namespace

Drupal\acsf\Event

Code

public function __construct(AcsfEvent $event) {

  // Fake-inject some objects.
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->moduleHandler = \Drupal::moduleHandler();
  $this->acsfVarStorage = \Drupal::service('acsf.variable_storage');
  parent::__construct($event);
}