- $data = $this->getData();
- $chunks = [];
-
- // Inline RLQ: Embedded modules
- if ( $data['embed']['general']['bottom'] ) {
- $chunks[] = $this->getLoad(
- $data['embed']['general']['bottom'],
- ResourceLoaderModule::TYPE_COMBINED
- );
- }
-
- // Inline RLQ: Load only=scripts
- if ( $data['scripts']['bottom'] ) {
- $chunks[] = $this->getLoad(
- $data['scripts']['bottom'],
- ResourceLoaderModule::TYPE_SCRIPTS
- );
- }
-
- // Inline RLQ: Load general modules
- if ( $data['general']['bottom'] ) {
- $chunks[] = ResourceLoader::makeInlineScript(
- Xml::encodeJsCall( 'mw.loader.load', [ $data['general']['bottom'] ] )
- );
- }
-
- return WrappedStringList::join( "\n", $chunks );