Feature: #102793 - PSR-14 event for modifying default constraints in PageRepository¶
The API class
\TYPO3\CMS\Core\Domain\Repository\PageRepository has a
getDefaultConstraints() which accumulates common restrictions for
a database query to limit a query for TCA-based tables in order to filter out
disabled, or scheduled records.
A new PSR-14 event
been introduced, which allows to remove, alter or add constraints compiled by
TYPO3 for a specific table to further limit these constraints.
The new event contains a list of
CompositeExpression objects, allowing
to modify them via the
setConstraints(array $constraints) methods.
Additional information, such as the used
ExpressionBuilder object or the
table name and the current
Context are also available within the event.