Commit 605b2ff6 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Remove useCacheHash from link generation because it does nothing anymore

parent 1ec1b881
......@@ -27,6 +27,7 @@ namespace SGalinski\SgMail\ViewHelpers\Widget;
***************************************************************/
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
......@@ -52,9 +53,6 @@ class UriViewHelper extends AbstractViewHelper {
* Initialize arguments
*/
public function initializeArguments() {
$this->registerArgument(
'useCacheHash', 'bool', 'True whether the cache hash should be appended to the URL', FALSE, FALSE
);
$this->registerArgument('addQueryStringMethod', 'string', 'Method to be used for query string');
$this->registerArgument('action', 'string', 'Target action');
$this->registerArgument('arguments', 'array', 'Arguments', FALSE, []);
......@@ -89,6 +87,7 @@ class UriViewHelper extends AbstractViewHelper {
* @return string the AJAX URI
*/
protected static function getAjaxUri(RenderingContextInterface $renderingContext, array $arguments) {
/** @var ControllerContext $controllerContext */
$controllerContext = $renderingContext->getControllerContext();
$action = $arguments['action'];
$arguments = $arguments['arguments'];
......@@ -111,6 +110,7 @@ class UriViewHelper extends AbstractViewHelper {
* @return string the Widget URI
*/
protected static function getWidgetUri(RenderingContextInterface $renderingContext, array $arguments) {
/** @var ControllerContext $controllerContext */
$controllerContext = $renderingContext->getControllerContext();
$uriBuilder = $controllerContext->getUriBuilder();
$argumentPrefix = $controllerContext->getRequest()->getArgumentPrefix();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment