class AcquiaDAMMediaBrowserPlugin in Media: Acquia DAM 7
Media browser plugin for showing the upload form.
Hierarchy
- class \AcquiaDAMMediaBrowserPlugin extends \MediaBrowserPlugin
Expanded class hierarchy of AcquiaDAMMediaBrowserPlugin
1 string reference to 'AcquiaDAMMediaBrowserPlugin'
- media_acquiadam_browser_media_browser_plugin_info in modules/
media_acquiadam_browser/ media_acquiadam_browser.module - Implements hook_media_browser_plugin_info().
File
- modules/
media_acquiadam_browser/ includes/ AcquiaDAMMediaBrowserPlugin.inc, line 13 - Definition of AcquiaDAMMediaBrowserPlugin.
View source
class AcquiaDAMMediaBrowserPlugin extends MediaBrowserPlugin {
/**
* Implements MediaBrowserPlugin::view().
*
* {@inheritDoc}
*/
public function view() {
module_load_include('module', 'media_acquiadam', 'media_acquiadam');
$build = [
'#title' => t('Acquia DAM'),
'#weight' => 10,
'form' => drupal_get_form('media_acquiadam_browser_choose_asset_form', $this->params),
];
return $build;
}
/**
* Implements MediaBrowserPlugin::access().
*
* {@inheritDoc}
*/
public function access($account = NULL) {
return user_access('administer files', $account) || user_access('access media acquiadam browser', $account);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AcquiaDAMMediaBrowserPlugin:: |
public | function | Implements MediaBrowserPlugin::access(). | |
AcquiaDAMMediaBrowserPlugin:: |
public | function | Implements MediaBrowserPlugin::view(). |