QgsProject * project() const
Returns the project in which the algorithm is being executed.
Contains information about the context in which a processing algorithm is executed.
Details for layers to load into projects.
void addLayerToLoadOnCompletion(const QString &layer, const QgsProcessingContext::LayerDetails &details)
Adds a layer to load (by ID or datasource) into the canvas upon completion of the algorithm or model.