1 | <?php |
||
8 | class Link extends Column |
||
9 | { |
||
10 | protected $template = '<router-link :to="value.url">{{value.title}}</router-link>'; |
||
11 | |||
12 | private $url; |
||
13 | |||
14 | public function getUrl() |
||
15 | { |
||
16 | if ($this->url) { |
||
17 | return $this->url; |
||
18 | } |
||
19 | return $this->getEditUrl(); |
||
20 | } |
||
21 | |||
22 | public function setUrl($value) |
||
28 | |||
29 | protected function getEditUrl() |
||
35 | |||
36 | public function getValue() |
||
43 | } |
||
44 |