| 1 | <?php  | 
            ||
| 7 | class WidgetPresenter extends Presenter  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Get widget's view template.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @return string  | 
            ||
| 13 | */  | 
            ||
| 14 | public function template()  | 
            ||
| 15 |     { | 
            ||
| 16 | return $this->entity->template === 'custom' ? $this->entity->custom_template : $this->entity->template;  | 
            ||
| 17 | }  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * Get widget type FQCN.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @return string  | 
            ||
| 23 | * @throws \Exception  | 
            ||
| 24 | */  | 
            ||
| 25 | public function class()  | 
            ||
| 33 | }  | 
            ||
| 34 |