Feature: #106510 - Added PSR-14 events to Extbase Backend::getObjectCountByQuery method
See forge#106510
Description
The class
\TYPO3\
is the covering entity
to retrieve data from the database within the Extbase persistence framework.
Already in 2013 the
get
method got equipped with signals
(later migrated to events) in order to modify data retrieval.
Especially when used in combination with Extbase's
Query
there is also
a second important method
get
, which is often used in combination
with Fluid.
Extensions, or any other code using the existing events for data retrieval, have not been able
to consistently modify queries, such that results returned by
Query
were consistent.
The
get
method is now enhanced with events as well. This finally
allows extensions to modify all parts of query usage within Extbase's generic
Backend
to achieve consistent results.
The new events are:
\TYPO3\
may be used to modify the query before being passed on to the actual storage backend.CMS\ Extbase\ Event\ Persistence\ Modify Query Before Fetching Object Count Event \TYPO3\
may be used to adjust the result.CMS\ Extbase\ Event\ Persistence\ Modify Result After Fetching Object Count Event
Typically, an extension will want to implement events pair-wise:
Modify
together with
Modify
, and
Modify
together with
Modify