예제 #1
0
 /**
  * @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()];
 }
예제 #2
0
 /**
  * @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())];
 }
예제 #3
0
 /**
  * @return array
  */
 public function toArray()
 {
     return parent::toArray() + ['value' => $this->getModelValue(), 'append' => $this->getAppends()];
 }
예제 #4
0
 /**
  * @return array
  */
 public function toArray()
 {
     return parent::toArray() + ['value' => $this->getModelValue(), 'link' => $this->getModelConfiguration()->getEditUrl($this->getModel()->getKey()), 'append' => $this->getAppends(), 'linkAttributes' => $this->getLinkAttributes()];
 }
예제 #5
0
 /**
  * @return array
  */
 public function toArray()
 {
     return parent::toArray() + ['url' => $this->getModelValue()];
 }