newsListFetchItems
This hook allows you to return a custom collection of \Contao\NewsModel instances
to be used by the news list module. It allows you to implement custom filtering or
sorting for a news list.
Parameters
array
$newsArchivesThe IDs of the news archives shown in this news list.
bool
$featuredOnlyWhether or not to show only featured news. Can be null.
int
$limitThe limit as defined in the news list module.
int
$offsetThe offset as defined in the news list module.
\Contao\Module
$moduleThe front end module instance executing this hook.
Return Values
Return false if this hook should not be considered. Return a \Contao\Model\Collection
otherwise. Return null if no news entries are found.
If the return value is anything other than false, no further hooks of type newsListFetchItems will be executed!