ModifyFileReferenceControlsEvent
New in version 12.0
Listeners to the PSR-14 event
\TYPO3\
are able to modify the controls of a single file reference of a TCA type
file field. This event is similar to the
ModifyInlineElementControlsEvent, which is only available for TCA
type inline.
Example
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API
- class ModifyFileReferenceControlsEvent
-
- Fully qualified name
-
\TYPO3\
CMS\ Backend\ Form\ Event\ Modify File Reference Controls Event
Listeners to this Event will be able to modify the controls of a single file reference of a TCA type=file field.
- getControl ( string $identifier)
-
Returns the markup for the requested control
- param $identifier
-
the identifier
- Returns
-
string
- setControl ( string $identifier, string $markup)
-
Set a control with the given identifier and markup IMPORTANT: Overwrites an existing control with the same identifier
- param $identifier
-
the identifier
- param $markup
-
the markup
- hasControl ( string $identifier)
-
Returns whether a control exists for the given identifier
- param $identifier
-
the identifier
- Returns
-
bool