diff --git a/src/QUI/Bricks/Manager.php b/src/QUI/Bricks/Manager.php index 88d4a53a96dae352050f2ea37066771545200026..37f29d3a5db704d494b2395a94020840970efd7b 100644 --- a/src/QUI/Bricks/Manager.php +++ b/src/QUI/Bricks/Manager.php @@ -738,6 +738,11 @@ public function getBricksByArea($brickArea, QUI\Interfaces\Projects\Site $Site) $result = []; + QUI::getEvents()->fireEvent( + 'onQuiqqerBricksGetBricksByAreaBegin', + [$brickArea, $Site, &$result] + ); + foreach ($bricks as $key => $brickData) { $brickId = (int)$brickData['brickId']; @@ -771,6 +776,11 @@ public function getBricksByArea($brickArea, QUI\Interfaces\Projects\Site $Site) } } + QUI::getEvents()->fireEvent( + 'onQuiqqerBricksGetBricksByAreaEnd', + [$brickArea, $Site, &$result] + ); + return $result; }