Merge pull request #7404 from nextcloud/fix-highligting

Fix highlighting (missing php start tag)
This commit is contained in:
Carl Schwan 2021-10-26 20:43:43 +02:00 committed by GitHub
commit 7f4ee08c6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,6 +129,7 @@ need to support older versions where the new app boostrap flow is not available,
however this method is deprecated and will be removed once Nextcloud 19 is EOL.
.. code-block:: php
<?php
use OCP\Dashboard\RegisterWidgetEvent;
use OCP\EventDispatcher\IEventDispatcher;
@ -229,4 +230,4 @@ From the client point of view, the dashboard widget items can then be obtained w
-d '{"sinceIds":{"myappwidgetid":"2021-03-22T15:01:10Z","my_other_appwidgetid":"333"}}'
If your client periodically gets widget items content with this API,
include the latest `sinceId` for each widget to avoid getting the items you already have.
include the latest `sinceId` for each widget to avoid getting the items you already have.