add MaskExport
This commit is contained in:
parent
1fd53af165
commit
463e4c05c5
46
Classes/Controller/MaskExport/ExportController.php
Normal file
46
Classes/Controller/MaskExport/ExportController.php
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<?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';
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user