public function __construct(Widget $original, Widget $copy) { parent::__construct($original); $this->copy = $copy; }
public function onWidgetSave(WidgetEvent $event) { $settings = $this->getSettings(); $settings[$event->getWidget()->getId()] = $this['request']->get('_theme', []); $this->setSettings($settings); }