class MediaModuleTest in D7 Media 7.4
Same name and namespace in other branches
- 7.2 tests/includes/MediaModuleTest.inc \MediaModuleTest
- 7.3 tests/includes/MediaModuleTest.inc \MediaModuleTest
Test browser plugin.
Hierarchy
- class \MediaBrowserPlugin implements MediaBrowserPluginInterface
- class \MediaModuleTest
Expanded class hierarchy of MediaModuleTest
1 string reference to 'MediaModuleTest'
- media_module_test_media_browser_plugin_info in tests/
media_module_test.module - Implements hook_media_browser_plugin_info().
File
- tests/
includes/ MediaModuleTest.inc, line 11 - Definition of MediaModuleTest.
View source
class MediaModuleTest extends MediaBrowserPlugin {
/**
* Implements MediaBrowserPluginInterface::access().
*/
public function access($account = NULL) {
return TRUE;
}
/**
* Implements MediaBrowserPlugin::view().
*/
public function view() {
$build = array();
$build['test'] = array(
'#markup' => '<p>' . t('Test browser plugin output.') . '</p>',
);
return $build;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaBrowserPlugin:: |
protected | property | The plugin metadata array from hook_media_browser_plugin_info(). | |
MediaBrowserPlugin:: |
protected | property | The parameters for current media browser from media_get_browser_params(). | |
MediaBrowserPlugin:: |
public | function |
Implements MediaBrowserPluginInterface::__construct(). Overrides MediaBrowserPluginInterface:: |
1 |
MediaModuleTest:: |
public | function |
Implements MediaBrowserPluginInterface::access(). Overrides MediaBrowserPlugin:: |
|
MediaModuleTest:: |
public | function |
Implements MediaBrowserPlugin::view(). Overrides MediaBrowserPlugin:: |