mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Add abstract method for getMediaSources.
Change-Id: I8c51d91a1f8ad1a8c688a6dd3de8ac53d4f8d3f9
This commit is contained in:
parent
c0fe8b877c
commit
f7b6b1e99c
|
@ -116,3 +116,14 @@ ve.init.Platform.prototype.getSystemPlatform = function () {
|
|||
ve.init.Platform.prototype.getUserLanguages = function () {
|
||||
throw new Error( 've.init.Platform.getUserLanugages must be overridden in subclass' );
|
||||
};
|
||||
|
||||
/**
|
||||
* Get a list of URL entry points where media can be found.
|
||||
*
|
||||
* @method
|
||||
* @abstract
|
||||
* @returns {string[]} API URLs
|
||||
*/
|
||||
ve.init.Platform.prototype.getMediaSources = function () {
|
||||
throw new Error( 've.init.Platform.getMediaSources must be overridden in subclass' );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue