You are here

public function PreImportEvent::__construct in YAML Content 8.2

Constructs a yaml content pre-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 to be imported in the batch about to begin.

Overrides EventBase::__construct

File

src/Event/PreImportEvent.php, line 27

Class

PreImportEvent
Wraps a yaml content pre-import event for event listeners.

Namespace

Drupal\yaml_content\Event

Code

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