+ // Url to redirect to after the operation
+ $this->goToUrl = $title->getFullURL();
+
+ return self::changePageLanguage( $this->getContext(), $title, $newLanguage );
+ }
+
+ /**
+ * @param IContextSource $context
+ * @param Title $title
+ * @param string $newLanguage Language code
+ * @param array $tags Change tags to apply to the log entry
+ * @return Status
+ */
+ public static function changePageLanguage( IContextSource $context, Title $title,
+ $newLanguage, array $tags = [] ) {