Something went wrong. Try again.
Element Exporter makes exporting data from your Craft CMS website easy and repeatable, with events for custom data parsing and elements.
Something went wrong. Try again.
1234567891011121314151617181920212223242526<?php
namespace studioespresso\exporter\console\controllers;
use craft\console\Controller;use studioespresso\exporter\elements\ExportElement;use studioespresso\exporter\Exporter;
/** * Run your exports from the command line */class ExportController extends Controller{ /** * Pass an export ID to add that export to the queue * @param $id * @return bool */ public function actionRun($id): bool { $export = ExportElement::find()->id($id)->one(); Exporter::getInstance()->queue->addExport($export); return true; }}