Legoktm 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
(cherry picked from commit 0406f3d61b1bd4ac29a4017dd274e8831ad20a3b)
---
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 f7e9142..2f8094a 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -364,6 +364,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.
@@ -372,6 +382,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;
        }
 
        /**
@@ -396,6 +416,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/177290
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: REL1_24
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to