Class media.plugin
The base class for all plugins.
Defined in: drupal.media.plugin.js.
Constructor Attributes | Constructor Name and Description |
---|---|
media.plugin(context, options)
|
Method Attributes | Method Name and Description |
---|---|
The constructor which is called once the context is set.
|
|
setPlayer(player)
Sets the current media player.
|
Class Detail
media.plugin(context, options)
- Parameters:
- {object} context
- The jQuery context.
- {object} options
- This components options.
Method Detail
construct()
The constructor which is called once the context is set.
Any class deriving from the plugin class should place all context
dependant functionality within this function instead of the standard
constructor function since it is called on object derivation as well
as object creation.
setPlayer(player)
Sets the current media player.
- Parameters:
- {object} player
- The current media player.