diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_28.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_28.rst index 9cdbbe733..8b3ca93ec 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_28.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_28.rst @@ -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 diff --git a/developer_manual/basics/events.rst b/developer_manual/basics/events.rst index f97c2e714..9bb3afa7a 100644 --- a/developer_manual/basics/events.rst +++ b/developer_manual/basics/events.rst @@ -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`` ********************************************************