Admin event hooks are called the same way that the core event hooks are called.
The Admin plugin fires various tasks, depending on user interaction. Tasks might include logout, login, save, 2faverify, etc. After the task completes, this event hook fires.
While creating a new page, this event is fired after the header data is initially set to allow plugins to programmatically manipulate the frontmatter.
Use admin event
onAdminSave() to manipulate the page object data
$obj before it is saved to the filesystem.
After saving the page in the administration panel, this event is fired.
When creating a folder via the panel, this event fires immediately after creating the new folder and performing a standard cache clear.
Fires after a page or folder is deleted. It is immediately followed by a standard cache clear.
Fires after an add media task completes, but before the confirmation message is displayed.
Fires after a delete media task completes, but before the confirmation message is displayed.