class BynderMediaStreamWrapper in Bynder 7
@file media_youtube/includes/BynderMediaStreamWrapper.inc
Create a Bynder Stream Wrapper class for the Media/Resource module.
Hierarchy
- class \BynderMediaStreamWrapper extends \MediaReadOnlyStreamWrapper
Expanded class hierarchy of BynderMediaStreamWrapper
1 string reference to 'BynderMediaStreamWrapper'
- bynder_stream_wrappers in ./
bynder.module - Implements hook_stream_wrappers().
File
- includes/
BynderMediaStreamWrapper.inc, line 9 - media_youtube/includes/BynderMediaStreamWrapper.inc
View source
class BynderMediaStreamWrapper extends MediaReadOnlyStreamWrapper {
/**
* Function getWebimagePath().
* @return string
* The path to the image.
*/
public function getWebimagePath($image_style, $filename) {
return @bynder_embed_url($this->parameters['i'], $filename, $image_style);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BynderMediaStreamWrapper:: |
public | function | Function getWebimagePath(). |