Skip to content

Commit

Permalink
Merge branch 'release/1.3.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 11, 2023
2 parents 92ac12d + d224c99 commit 7f905a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.3.6
## 10/11/2023

1. [](#new)
* Added a new `onAdminObjectGet()` event to allow for manipulation of flex objects

# v1.3.5
## 05/09/2023

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Flex Objects
slug: flex-objects
type: plugin
version: 1.3.5
version: 1.3.6
description: Flex Objects plugin allows you to manage Flex Objects in Grav Admin.
icon: list-alt
author:
Expand Down
2 changes: 2 additions & 0 deletions classes/Admin/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1579,6 +1579,8 @@ public function getObject(string $key = null): ?FlexObjectInterface
}
}

$this->grav->fireEvent('onAdminObjectGet', new Event(['object' => $this->object]));

return $this->object ?: null;
}

Expand Down

0 comments on commit 7f905a7

Please sign in to comment.