/** * @see TitleFormatter::getText() * * @param LinkTarget $title * * @return string */ public function getFullText(LinkTarget $title) { return $this->formatTitle($title->getNamespace(), $title->getText(), $title->getFragment()); }
/** * Create a new Title from a LinkTarget * * @param LinkTarget $linkTarget Assumed to be safe. * * @return Title */ public static function newFromLinkTarget(LinkTarget $linkTarget) { return self::makeTitle($linkTarget->getNamespace(), $linkTarget->getText(), $linkTarget->getFragment()); }