mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
Merge pull request #10737 from nextcloud/event-updates/39222
fix(developer_manual): Document event updates
This commit is contained in:
@@ -97,3 +97,15 @@ If you want to support Nextcloud 27 and Nextcloud 28:
|
||||
} else {
|
||||
$eventSource = \OCP\Server::get(IEventSourceFactory::class)->create();
|
||||
}
|
||||
|
||||
Deprecated events
|
||||
^^^^^^^^^^^^^^^^^
|
||||
|
||||
* ``OCA\Files_Trashbin::moveToTrash`` was deprecated. Listen to the typed event ``OCA\Files_Trashbin\Events\MoveToTrashEvent`` instead
|
||||
|
||||
Removed events
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
* ``OCP\WorkflowEngine::registerChecks`` (deprecated since 17) was removed. Listen to the typed event ``OCP\WorkflowEngine\Events\RegisterChecksEvent`` instead
|
||||
* ``OCP\WorkflowEngine::registerEntities`` (deprecated since 17) was removed. Listen to the typed event ``OCP\WorkflowEngine\Events\RegisterEntitiesEvent`` instead
|
||||
* ``OCP\WorkflowEngine::registerOperations`` (deprecated since 17) was removed. Listen to the typed event ``OCP\WorkflowEngine\Events\RegisterOperationsEvent`` instead
|
||||
|
||||
@@ -30,7 +30,7 @@ The name should reflect the subject and the actions. Suffixing event classes wit
|
||||
|
||||
For example, if a user is created, a `UserCreatedEvent` will be emitted.
|
||||
|
||||
Events are usually evmitted *after* the event has happened. If it's emitted before, it should be prefixed with `Before`.
|
||||
Events are usually emitted *after* the event has happened. If it's emitted before, it should be prefixed with `Before`.
|
||||
|
||||
Thus `BeforeUserCreatedEvent` is emitted *before* the user data is written to the database.
|
||||
|
||||
@@ -357,6 +357,13 @@ This event is triggered when the files app is rendered. It can be used to add ad
|
||||
|
||||
Emitted before the rendering step of the public share page happens. The event holds a flag that specifies if it is the authentication page of a public share.
|
||||
|
||||
``\OCA\Files_Trashbin\Events\MoveToTrashEvent``
|
||||
***********************************************
|
||||
|
||||
.. versionadded:: 28
|
||||
|
||||
Emitted after a file or folder is moved to the trashbin.
|
||||
|
||||
``\OCA\Settings\Events\BeforeTemplateRenderedEvent``
|
||||
********************************************************
|
||||
|
||||
|
||||
Reference in New Issue
Block a user