1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-29 05:31:28 +00:00

generate a warning if plugin-generated content of HOOK_ARTICLE_BUTTON or _LEFT_BUTTON can't be parsed as valid XML

This commit is contained in:
Andrew Dolgov
2022-01-06 10:37:03 +03:00
parent 97baf3e8b9
commit c3482fbe6b
4 changed files with 35 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ abstract class Plugin {
/* GLOBAL hooks are invoked in global context, only available to system plugins (loaded via .env for all users) */
/** Adds buttons for article (on the right) - e.g. mail, share, add note.
/** Adds buttons for article (on the right) - e.g. mail, share, add note. Generated markup must be valid XML.
* @param array<string,mixed> $line
* @return string
* @see PluginHost::HOOK_ARTICLE_BUTTON
@@ -307,7 +307,7 @@ abstract class Plugin {
return [];
}
/** Adds per-article buttons on the left side
/** Adds per-article buttons on the left side. Generated markup must be valid XML.
* @param array<string,mixed> $row
* @return string
* @see PluginHost::HOOK_ARTICLE_LEFT_BUTTON