[TASK] Add methods to retrieve typoscript
This commit is contained in:
parent
8f24164f03
commit
4680bce585
@ -18,6 +18,7 @@ use \Opis\JsonSchema\{
|
|||||||
use TYPO3\CMS\Core\Cache\CacheManager;
|
use TYPO3\CMS\Core\Cache\CacheManager;
|
||||||
use TYPO3\CMS\Core\Log\LogManager;
|
use TYPO3\CMS\Core\Log\LogManager;
|
||||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||||
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
||||||
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController as BaseController;
|
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController as BaseController;
|
||||||
use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
|
use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
|
||||||
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper;
|
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper;
|
||||||
@ -206,6 +207,42 @@ class ActionController extends BaseController
|
|||||||
$this->arguments->addNewArgument('submit', 'string', false, false);
|
$this->arguments->addNewArgument('submit', 'string', false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* shortcut
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function getExtensionKey()
|
||||||
|
{
|
||||||
|
return $this->request->getControllerExtensionKey();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* shortcut function to recieve typoscript
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
protected function getPluginTyposcript()
|
||||||
|
{
|
||||||
|
return $this->configurationManager->getConfiguration(
|
||||||
|
ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS,
|
||||||
|
str_replace('_', '', $this->getExtensionKey),
|
||||||
|
$this->request->getPluginName()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* shortcut function to recieve typoscript
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
protected function getTyposcript()
|
||||||
|
{
|
||||||
|
return $this->configurationManager->getConfiguration(
|
||||||
|
ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* shortcut to get to know if request is submittet via post
|
* shortcut to get to know if request is submittet via post
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user