public function DataImportEvent::__construct in YAML Content 8.2
Same name and namespace in other branches
- 8 src/Event/DataImportEvent.php \Drupal\yaml_content\Event\DataImportEvent::__construct()
Constructs a yaml content entity pre-save event object.
Parameters
\Drupal\yaml_content\ContentLoader\ContentLoaderInterface $loader: The active Content Loader that triggered the event.
array $content_data: The parsed content loaded from the content file to be loaded into the entity field.
Overrides EventBase::__construct
2 calls to DataImportEvent::__construct()
- EntityImportEvent::__construct in src/
Event/ EntityImportEvent.php - Constructs a yaml content entity import event object.
- FieldImportEvent::__construct in src/
Event/ FieldImportEvent.php - Constructs a yaml content field import event object.
2 methods override DataImportEvent::__construct()
- EntityImportEvent::__construct in src/
Event/ EntityImportEvent.php - Constructs a yaml content entity import event object.
- FieldImportEvent::__construct in src/
Event/ FieldImportEvent.php - Constructs a yaml content field import event object.
File
- src/
Event/ DataImportEvent.php, line 28
Class
- DataImportEvent
- Wraps a yaml content data import event for event listeners.
Namespace
Drupal\yaml_content\EventCode
public function __construct(ContentLoaderInterface $loader, array $content_data) {
parent::__construct($loader);
$this->contentData = $content_data;
}