ModifyInlineElementEnabledControlsEvent
New in version 12.0
This event, together with ModifyInlineElementControlsEvent,
serves as a more powerful and flexible replacement
for the removed hook
$GLOBALS
The PSR-14 event
\TYPO3\
is called before any control markup is generated. It can be used to
enable or disable each control. With this event it is therefore possible
to enable a control, which is disabled in TCA, only for some use case.
See the ModifyInlineElementControlsEvent example for details.
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
-
final class
ModifyInlineElementEnabledControlsEvent -
- Fully qualified name
-
\TYPO3\CMS\ Backend\ Form\ Event\ Modify Inline Element Enabled Controls Event
Listeners to this Event will be able to modify the state (enabled or disabled) for controls of an inline element
enableControl(string $identifier)-
Enable a control, if it exists
- param $identifier
-
the identifier
- Return description
-
Whether the control could be enabled
- Returns
-
bool
disableControl(string $identifier)-
Disable a control, if it exists
- param $identifier
-
the identifier
- Return description
-
Whether the control could be disabled
- Returns
-
bool
hasControl(string $identifier)-
Returns whether a control exists for the given identifier
- param $identifier
-
the identifier
- Returns
-
bool