Skip to content

Commit

Permalink
add new event
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 11, 2023
1 parent 1809fb8 commit a1f55b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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
## mm/dd/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: 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 a1f55b6

Please sign in to comment.