/**
  * @return array
  */
 public function toArray()
 {
     return array_except(parent::toArray(), ['name', 'description']) + ['size' => $this->getSize(), 'multiple' => $this->isMultiple(), 'packages' => $this->getMediaPackages(), 'updateSettingsPage' => $this->isUpdateSettingsPage()];
 }
 /**
  * @param WidgetManager $widgetManager
  * @param string        $name
  * @param string        $description
  */
 public function __construct(WidgetManager $widgetManager, $name, $description = '')
 {
     parent::__construct($widgetManager, $name, $description);
     Assets::loadPackage('query-builder');
 }
Example #3
0
 /**
  * @return string
  */
 public function getName()
 {
     return 'PagePart::' . parent::getName();
 }
Example #4
0
 /**
  * @return string
  */
 public function getCacheKey()
 {
     return parent::getCacheKey() . '::' . Request::path();
 }