File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Release Notes for Element API
22
3+ ## Unreleased
4+ - Fix an issue where ` EVENT_BEFORE_SEND_DATA ` wasn't returning data. ([ #165 ] ( https://github.com/craftcms/element-api/issues/165 ) )
5+
36## 3.0.0 - 2022-05-03
47
58### Added
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ class DataEvent extends Event
1616 /**
1717 * @var Scope The Fractal data associated with the event
1818 */
19- public $ data ;
19+ public Scope $ payload ;
2020}
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public function actionIndex(string $pattern): Response
175175 // Fire a 'beforeSendData' event
176176 if ($ this ->hasEventHandlers (self ::EVENT_BEFORE_SEND_DATA )) {
177177 $ this ->trigger (self ::EVENT_BEFORE_SEND_DATA , new DataEvent ([
178- 'data ' => $ data ,
178+ 'payload ' => $ data ,
179179 ]));
180180 }
181181
You can’t perform that action at this time.
0 commit comments