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