/**
  * @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');
 }
 /**
  * @return string
  */
 public function getName()
 {
     return 'PagePart::' . parent::getName();
 }
 /**
  * @return string
  */
 public function getCacheKey()
 {
     return parent::getCacheKey() . '::' . Request::path();
 }