addModules( array( 'ext.visualEditor.core' ) ); } return true; } /** * Determines whether or not we should construct the loader. * * @param $output OutputPage * @param $skin Skin */ public static function loadVisualEditor( &$output, &$skin ) { // Vector skin supported for now. if ( $skin->getSkinName() !== 'vector' ) { return false; } //TODO: check namespace, user permissions... return true; } }