| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __construct($name, BaseBuilder $builder) |
||
| 17 | { |
||
| 18 | parent::__construct($name, 'object'); |
||
| 19 | |||
| 20 | $this->setIcon('fa-times'); |
||
| 21 | $this->setLabel('action.object.delete.label'); |
||
| 22 | $this->setConfirm('action.object.delete.confirm'); |
||
| 23 | $this->setCsrfProtected(true); |
||
| 24 | |||
| 25 | $this->setRoute($builder->getObjectActionsRoute()); |
||
| 26 | |||
| 27 | $this->setParams(array( |
||
| 28 | 'pk' => '{{ '.$builder->getModelClass().'.'.$builder->getModelPrimaryKeyName().' }}', |
||
| 29 | 'action' => 'delete' |
||
| 30 | )); |
||
| 31 | |||
| 32 | } |
||
| 33 | } |
||
| 34 |