public function MediaBrowserView::view in D7 Media 7.2
Same name and namespace in other branches
- 7.4 includes/MediaBrowserView.inc \MediaBrowserView::view()
- 7.3 includes/MediaBrowserView.inc \MediaBrowserView::view()
Implements MediaBrowserPlugin::view().
Overrides MediaBrowserPlugin::view
File
- includes/
MediaBrowserView.inc, line 44 - Definition of MediaBrowserView.
Class
- MediaBrowserView
- Media browser plugin for displaying a specific view and display.
Code
public function view() {
if (!empty($this->view)) {
$build['#markup'] = $this->view
->preview();
// Allow the View title to override the plugin title.
if ($title = $this->view
->get_title()) {
$build['#title'] = $title;
}
return $build;
}
}