28 private $titleFormatter;
38 private $hookContainer;
43 private $specialPageFactory;
63 $this->titleFormatter = $titleFormatter;
64 $this->linkCache = $linkCache;
65 $this->specialPageFactory = $specialPageFactory;
66 $this->hookContainer = $hookContainer;
67 $this->tempUserConfig = $tempUserConfig;
68 $this->tempUserDetailsLookup = $tempUserDetailsLookup;
69 $this->userIdentityLookup = $userIdentityLookup;
70 $this->userNameUtils = $userNameUtils;
81 public function create( array $options = [
'renderForComment' =>
false ] ) {
83 $this->titleFormatter, $this->linkCache, $this->specialPageFactory,
84 $this->hookContainer, $this->tempUserConfig,
85 $this->tempUserDetailsLookup, $this->userIdentityLookup,
96 $linkRenderer = $this->
create();
98 if ( in_array(
'forcearticlepath', $options,
true ) ) {
99 $linkRenderer->setForceArticlePath(
true );
102 if ( in_array(
'http', $options,
true ) ) {
104 } elseif ( in_array(
'https', $options,
true ) ) {
108 return $linkRenderer;
Page existence and metadata cache.
Factory for handling the special page list and generating SpecialPage objects.