You are here

public function PostImportEvent::__construct in YAML Content 8.2

Constructs a yaml content post-import event object.

Parameters

\Drupal\yaml_content\ContentLoader\ContentLoaderInterface $loader: The active Content Loader that triggered the event.

array $import_files: An array of files imported in the completed batch.

array $loaded_content: An associative array of imported content entities keyed by file name.

Overrides EventBase::__construct

File

src/Event/PostImportEvent.php, line 36

Class

PostImportEvent
Wraps a yaml content post-import event for event listeners.

Namespace

Drupal\yaml_content\Event

Code

public function __construct(ContentLoaderInterface $loader, array $import_files, array $loaded_content) {
  parent::__construct($loader);
  $this->importFiles = $import_files;
}