From fc73ab26435a32decdc2602a15c649294526ec5e Mon Sep 17 00:00:00 2001 From: Daniel Lorenz Date: Fri, 17 Aug 2018 09:08:51 +0200 Subject: [PATCH] [TASK] #4 - use new core api for backend modul link --- .../Backend/EditRecordViewHelper.php | 45 ------------------- .../V8/Templates/Backend/Product/List.html | 4 +- 2 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 Classes/ViewHelpers/Backend/EditRecordViewHelper.php diff --git a/Classes/ViewHelpers/Backend/EditRecordViewHelper.php b/Classes/ViewHelpers/Backend/EditRecordViewHelper.php deleted file mode 100644 index aa43cc28..00000000 --- a/Classes/ViewHelpers/Backend/EditRecordViewHelper.php +++ /dev/null @@ -1,45 +0,0 @@ -registerArgument('parameters', 'string', 'Is a set of GET params to send to FormEngine', true); - } - - /** - * Returns a URL to link to FormEngine - * - * @param array $arguments - * @param \Closure $renderChildrenClosure - * @param RenderingContextInterface $renderingContext - * - * @see \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl() - * @return string URL to FormEngine module + parameters - */ - public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) - { - $parameters = GeneralUtility::explodeUrl2Array($arguments['parameters']); - return BackendUtility::getModuleUrl('record_edit', $parameters); - } -} diff --git a/Resources/Private/Backend/V8/Templates/Backend/Product/List.html b/Resources/Private/Backend/V8/Templates/Backend/Product/List.html index 712b5de4..a4c970ab 100644 --- a/Resources/Private/Backend/V8/Templates/Backend/Product/List.html +++ b/Resources/Private/Backend/V8/Templates/Backend/Product/List.html @@ -1,4 +1,5 @@ @@ -66,8 +67,7 @@ title="{f:translate(key: 'tx_cartproducts.controller.product.action.show')}"> - - {cart:backend.removeRecord(product: product)} +