From 0406f3d61b1bd4ac29a4017dd274e8831ad20a3b Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 3 Dec 2014 09:40:15 -0800 Subject: [PATCH] OutputPage: Add accessors for some protected properties Bug: T76168 Change-Id: Iee11c217b6b0d35acfdfac916814521acda2b1a4 --- includes/OutputPage.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2936ca3805..fb2d6f4156 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -366,6 +366,16 @@ class OutputPage extends ContextSource { array_push( $this->mMetatags, array( $name, $val ) ); } + /** + * Returns the current tags + * + * @since 1.25 + * @return array + */ + public function getMetaTags() { + return $this->mMetatags; + } + /** * Add a new \ tag to the page header. * @@ -377,6 +387,16 @@ class OutputPage extends ContextSource { array_push( $this->mLinktags, $linkarr ); } + /** + * Returns the current tags + * + * @since 1.25 + * @return array + */ + public function getLinkTags() { + return $this->mLinktags; + } + /** * Add a new \ with "rel" attribute set to "meta" * @@ -398,6 +418,17 @@ class OutputPage extends ContextSource { $this->mCanonicalUrl = $url; } + /** + * Returns the URL to be used for the 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 * -- 2.20.1