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.
12345678910111213141516171819202122<?php
namespace studioespresso\exporter\services;
use craft\base\Component;use craft\elements\User;use studioespresso\exporter\elements\ExportElement;
class ElementService extends Component{ public function getEditableExports(User $user): ?array { $allExports = ExportElement::find()->all(); return array_filter($allExports, function($export) use ($user) { if ($export->canView($user)) { return true; } return false; }); }}