/** * Custom logic code here for setting placeholders, etc * * @param array $scriptProperties * @return array */ public function process(array $scriptProperties = array()) { if (empty($this->widget)) { return $this->failure($this->modx->lexicon('widget_err_nf')); } $this->widgetArray = $this->widget->toArray(); $this->widgetArray['dashboards'] = $this->getDashboards(); return $this->widgetArray; }
/** * Returns an array of placeholders for the block from the widget class. Override to add or change placeholders. * @return array */ public function toArray() { return $this->widget->toArray(); }