37 if ( isset( $options[
'dirSpecificStyles'] ) ) {
38 $this->dirSpecificStyles = $options[
'dirSpecificStyles'];
47 if ( isset( $this->dirSpecificStyles[ $dir ] ) ) {
48 $this->styles = array_merge( $this->styles, (array)$this->dirSpecificStyles[ $dir ] );
50 $this->dirSpecificStyles = [];
53 return parent::getStyleFiles( $context );
79 static $allIcons =
null;
80 if ( $allIcons ===
null ) {
81 $allIcons = json_decode( file_get_contents(
"$IP/resources/lib/codex-icons/codex-icons.json" ),
true );
83 return array_intersect_key( $allIcons, array_flip( $iconNames ) );
88class_alias( CodexModule::class,
'ResourceLoaderCodexModule' );
if(!defined( 'MEDIAWIKI')) if(ini_get('mbstring.func_overload')) if(!defined( 'MW_ENTRY_POINT')) global $IP
Environment checks.
Context object that contains information about the state of a specific ResourceLoader web request.
Interface for configuration instances.