diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-11-08 05:33:00 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-08 05:32:59 +0300 |
commit | ee4c3087779d43cd52a4fd8f31ed9e61489b8e79 (patch) | |
tree | 83ed3bad075e51a0accd4327a501ce8cd9886370 /core/Plugin/Report.php | |
parent | d5c9010a9a3a2db3e3564f8e1b92e81215e275c5 (diff) |
Adds links to online guides in reports help (#15030)
* Adds links to online guides in reports help
for reports where the new onlineGuideUrl property is defined
* Adds more online guide links
* updates expected test files
* include online guide url in report glossary API
* Adjust link
* Add punctuation to translation.
Diffstat (limited to 'core/Plugin/Report.php')
-rw-r--r-- | core/Plugin/Report.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Plugin/Report.php b/core/Plugin/Report.php index 2f512bbfaa..391ae994d5 100644 --- a/core/Plugin/Report.php +++ b/core/Plugin/Report.php @@ -75,6 +75,12 @@ class Report protected $documentation; /** + * URL linking to an online guide for this report or plugin. + * @var string + */ + protected $onlineGuideUrl; + + /** * The translation key of the category the report belongs to. * @var string * @api @@ -600,6 +606,10 @@ class Report $report['documentation'] = $this->documentation; } + if (!empty($this->onlineGuideUrl)) { + $report['onlineGuideUrl'] = $this->onlineGuideUrl; + } + if (true === $this->isSubtableReport) { $report['isSubtableReport'] = $this->isSubtableReport; } |