- $out = $this->mContext->getOutput();
- if ( !wfMessage( 'protect-dropdown' )->inContentLanguage()->isDisabled() ) {
- $reasonsList = Xml::getArrayFromWikiTextList(
- wfMessage( 'protect-dropdown' )->inContentLanguage()->text()
- );
- $out->addModules( 'mediawiki.reasonSuggest' );
- $out->addJsConfigVars( [
- 'reasons' => $reasonsList
- ] );
- }
-