ModifyDefaultConstraintsForDatabaseQueryEvent
New in version 13.0
This event serves as a replacement for the removed hook
$GLOBALS
.
The API class \TYPO3\
has a
method get
which accumulates common
restrictions for a database query. The purpose is to limit queries for
TCA-based tables, filtering out disabled or scheduled records.
The PSR-14 event
\TYPO3\
allows to remove, alter or add constraints compiled by TYPO3 for a specific
table to further limit these constraints.
The event contains a list of Composite
objects, allowing
to modify them via the get
and
set
methods.
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 ModifyDefaultConstraintsForDatabaseQueryEvent
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Domain\ Event\ Modify Default Constraints For Database Query Event
Event which is fired when compiling the list of constraints such as "deleted" and "starttime", "endtime" etc.
This Event allows for additional enableColumns to be added or removed to the list of constraints.
An example: The extension ingmar_accessctrl enables assigning more than one usergroup to content and page records