for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DERHANSEN\SfEventMgt\ViewHelpers\Be;
/*
* This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*/
/**
* ViewHelper for a backend link that should edit the given event UID
* @author Torben Hansen <[email protected]>
class EditRecordViewHelper extends AbstractRecordViewHelper
{
* Initialize arguments
public function initializeArguments()
parent::initializeArguments();
$this->registerArgument('uid', 'integer', 'Record UID', true);
}
* Renders a edit link for the given Event UID
* @return string
public function render()
$uid = $this->arguments['uid'];
$parameters = [
'edit[tx_sfeventmgt_domain_model_event][' . (int)$uid . ']' => 'edit',
'returnUrl' => $this->getReturnUrl(),
];
return $this->getModuleUrl($parameters);