<?php

use MintyPHP\Module\Audit\AuditAuthorizationPolicy;
use MintyPHP\Module\Audit\Service\ImportAuditService;
use MintyPHP\Module\Audit\Support\AuditPageHelper;

$auditRun = AuditPageHelper::findOrRedirect(
    AuditAuthorizationPolicy::ABILITY_IMPORTS_AUDIT_VIEW,
    ImportAuditService::class,
    'audit/import-audit',
    'Import audit entry not found',
    'import_audit_not_found',
    'View import audit entry',
    $id ?? null
);
$breadcrumbs = [
    ['label' => t('Home'), 'path' => 'admin'],
    ['label' => t('Import audit logs'), 'path' => 'audit/import-audit'],
    ['label' => t('View')],
];
