EditRecordViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <backend:uri.editrecord>
Use this ViewHelper to provide edit links (only the uri) to records. The ViewHelper will pass the uid and table to FormEngine.
The uid must be given as a positive integer.
For new records, use the :ref:<be:uri.newRecord> <typo3-backend-uri-newrecord>
.
Examples
URI to the record-edit action passed to FormEngine::
<be:uri.editRecord uid="42" table="a_table" returnUrl="foo/bar" />
/typo3/record/edit?edit[a_table][42]=edit&returnUrl=foo/bar
URI to the edit record action: edit only the fields title and subtitle of page uid=42 and return to foo/bar::
<be:uri.editRecord uid="42" table="pages" fields="title,subtitle" returnUrl="foo/bar" />
<a href="/typo3/record/edit&edit[pages][42]=edit&returnUrl=foo/bar&columnsOnly=title,subtitle">
Table of Contents
Methods
- initializeArguments() : mixed
- renderStatic() : string
Methods
initializeArguments()
public
initializeArguments() : mixed
renderStatic()
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface