2020-12-06 13:56:20 +01:00

47 lines
1.2 KiB
PHP

<?php
declare(strict_types = 1);
namespace Chrosey\Sitepackage\Controller\MaskExport;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
class ExportController extends \IchHabRecht\MaskExport\Controller\ExportController
{
/**
* @return string
*/
protected function getExtensionName(): string
{
$backendUser = $this->getBackendUser();
if (!empty($backendUser->uc['mask_export']['extensionName'])) {
return $backendUser->uc['mask_export']['extensionName'];
}
return 'content_elements';
}
/**
* @return string
*/
protected function getVendorName(): string
{
$backendUser = $this->getBackendUser();
if (!empty($backendUser->uc['mask_export']['vendorName'])) {
return $backendUser->uc['mask_export']['vendorName'];
}
return 'Chrosey';
}
}