function PreImportEvent::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/DefaultContent/PreImportEvent.php \Drupal\Core\DefaultContent\PreImportEvent::__construct()
Constructs a PreImportEvent object.
Parameters
\Drupal\Core\DefaultContent\Finder $finder: The content finder, which has information on the entities to create in the necessary dependency order.
\Drupal\Core\DefaultContent\Existing $existing: What the importer will do when importing an entity that already exists.
File
-
core/
lib/ Drupal/ Core/ DefaultContent/ PreImportEvent.php, line 35
Class
- PreImportEvent
- Event dispatched before default content is imported.
Namespace
Drupal\Core\DefaultContentCode
public function __construct(public readonly Finder $finder, public readonly Existing $existing) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.