jenkins-bot has submitted this change and it was merged.

Change subject: OutputPage: Add accessors for some protected properties
......................................................................


OutputPage: Add accessors for some protected properties

Bug: T76168
Change-Id: Iee11c217b6b0d35acfdfac916814521acda2b1a4
---
M includes/OutputPage.php
1 file changed, 31 insertions(+), 0 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index 2936ca3..fb2d6f4 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -367,6 +367,16 @@
        }
 
        /**
+        * Returns the current <meta> tags
+        *
+        * @since 1.25
+        * @return array
+        */
+       public function getMetaTags() {
+               return $this->mMetatags;
+       }
+
+       /**
         * Add a new \<link\> tag to the page header.
         *
         * Note: use setCanonicalUrl() for rel=canonical.
@@ -375,6 +385,16 @@
         */
        function addLink( array $linkarr ) {
                array_push( $this->mLinktags, $linkarr );
+       }
+
+       /**
+        * Returns the current <link> tags
+        *
+        * @since 1.25
+        * @return array
+        */
+       public function getLinkTags() {
+               return $this->mLinktags;
        }
 
        /**
@@ -399,6 +419,17 @@
        }
 
        /**
+        * Returns the URL to be used for the <link rel=canonical> if
+        * one is set.
+        *
+        * @since 1.25
+        * @return bool|string
+        */
+       public function getCanonicalUrl() {
+               return $this->mCanonicalUrl;
+       }
+
+       /**
         * Get the value of the "rel" attribute for metadata links
         *
         * @return string

-- 
To view, visit https://gerrit.wikimedia.org/r/177256
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iee11c217b6b0d35acfdfac916814521acda2b1a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Aklapper <[email protected]>
Gerrit-Reviewer: Bartosz DziewoƄski <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to