diff --git a/CHANGELOG.md b/CHANGELOG.md index f18cefa..4268c8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.3.6 +## mm/dd/2023 + +1. [](#new) + * Added a new `onAdminObjectGet()` event to allow for manipulation of flex objects + # v1.3.5 ## 05/09/2023 diff --git a/classes/Admin/AdminController.php b/classes/Admin/AdminController.php index 3ba9242..1a35531 100644 --- a/classes/Admin/AdminController.php +++ b/classes/Admin/AdminController.php @@ -1579,6 +1579,8 @@ public function getObject(string $key = null): ?FlexObjectInterface } } + $this->grav->fireEvent('onAdminObjectGet', new Event(['object' => $this->object])); + return $this->object ?: null; }