Merge pull request #7405 from nextcloud/backport/7404/stable22

[stable22] Fix highlighting (missing php start tag)
This commit is contained in:
Carl Schwan
2021-10-26 21:01:00 +02:00
committed by GitHub

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.