From 060c1cc100efbd3592384bae1334a89f85f34f0f Mon Sep 17 00:00:00 2001 From: Daniel Lorenz Date: Fri, 17 Aug 2018 07:54:28 +0200 Subject: [PATCH] [TASK] #23 - use new core api for backend modul link --- .../Backend/EditRecordViewHelper.php | 56 ------------------- .../Templates/Backend/Contact/List.html | 3 +- 2 files changed, 2 insertions(+), 57 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 345a0ef..0000000 --- a/Classes/ViewHelpers/Backend/EditRecordViewHelper.php +++ /dev/null @@ -1,56 +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/Templates/Backend/Contact/List.html b/Resources/Private/Backend/Templates/Backend/Contact/List.html index 5f24d58..0eaeb44 100644 --- a/Resources/Private/Backend/Templates/Backend/Contact/List.html +++ b/Resources/Private/Backend/Templates/Backend/Contact/List.html @@ -1,4 +1,5 @@ {namespace contacts=Extcode\Contacts\ViewHelpers} +{namespace be=TYPO3\CMS\Backend\ViewHelpers} @@ -53,7 +54,7 @@ href="{f:uri.action(action:'show', arguments:{contact: contact})}"> - +