/** * @return array */ public function toArray() { $value = $this->getModelValue(); if (!empty($value) && strpos($value, '://') === false) { $value = asset($value); } return parent::toArray() + ['value' => $value, 'append' => $this->getAppends()]; }
/** * @return array */ public function toArray() { return parent::toArray() + ['icon' => $this->isSelf() ? 'fa-filter' : 'fa-arrow-circle-o-right', 'title' => $this->isSelf() ? trans('sleepingowl::core.table.filter') : trans('sleepingowl::core.table.filter-goto'), 'url' => $this->getUrl(), 'value' => $this->getModelValue($this->getModel(), $this->getField())]; }
/** * @return array */ public function toArray() { return parent::toArray() + ['value' => $this->getModelValue(), 'append' => $this->getAppends()]; }
/** * @return array */ public function toArray() { return parent::toArray() + ['value' => $this->getModelValue(), 'link' => $this->getModelConfiguration()->getEditUrl($this->getModel()->getKey()), 'append' => $this->getAppends(), 'linkAttributes' => $this->getLinkAttributes()]; }
/** * @return array */ public function toArray() { return parent::toArray() + ['url' => $this->getModelValue()]; }