Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (20 sloc) 554 Bytes
<?php
namespace Frontend\Modules\MediaLibrary\Widgets;
use Frontend\Modules\MediaLibrary\Widgets\Base\FrontendMediaWidget;
/**
* This will show a MediaGroup (Custom Module) or a MediaGallery (Media Module) in a list.
*/
class Listing extends FrontendMediaWidget
{
public function execute(): void
{
$this->loadData();
// We need to have a MediaGroup to show this widget
if (!$this->mediaGroup) {
return;
}
parent::execute();
$this->loadTemplate();
$this->parse();
}
}
You can’t perform that action at this time.