You are here

public function ImportEvent::__construct in Default Content for D8 8

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

Constructs a new import event.

Parameters

\Drupal\Core\Entity\ContentEntityInterface[] $entities: An array of content entities that were imported.

string $module: The module that provided the default content.

File

src/Event/ImportEvent.php, line 36

Class

ImportEvent
Defines event fired when content is imported.

Namespace

Drupal\default_content\Event

Code

public function __construct(array $entities, $module) {
  $this->entities = $entities;
  $this->module = $module;
}