Ensure teaser data hook runs after tags listener
This commit is contained in:
@@ -11,7 +11,7 @@ use Doctrine\DBAL\Connection;
|
|||||||
use Doctrine\DBAL\Exception;
|
use Doctrine\DBAL\Exception;
|
||||||
use Doctrine\DBAL\ParameterType;
|
use Doctrine\DBAL\ParameterType;
|
||||||
|
|
||||||
#[AsHook('getAllEvents')]
|
#[AsHook('getAllEvents', method: 'onGetAllEvents', priority: -512)]
|
||||||
class EventTeaserDataAttributesListener
|
class EventTeaserDataAttributesListener
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
@@ -19,7 +19,7 @@ class EventTeaserDataAttributesListener
|
|||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __invoke(array $events, array $calendars, int $start, int $end, Module $module): array
|
public function onGetAllEvents(array $events, array $calendars, int $start, int $end, Module $module): array
|
||||||
{
|
{
|
||||||
foreach ($events as $dayKey => $eventsPerDay) {
|
foreach ($events as $dayKey => $eventsPerDay) {
|
||||||
foreach ($eventsPerDay as $timeKey => $eventsPerTime) {
|
foreach ($eventsPerDay as $timeKey => $eventsPerTime) {
|
||||||
|
|||||||
Reference in New Issue
Block a user