Total Complexity | 2 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class ProductControllerExtension extends Extension |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $allowed_actions = [ |
||
|
|||
22 | 'AddToWishListForm', |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * @return \Dynamic\Wishlist\Form\AddToWishListForm |
||
27 | */ |
||
28 | public function WishListForm() |
||
29 | { |
||
30 | return AddToWishListForm::create($this->owner, 'WishListForm'); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param $data |
||
35 | * @param \SilverStripe\Forms\Form $form |
||
36 | * @return \SilverStripe\Control\HTTPResponse |
||
37 | * @throws \Exception |
||
38 | */ |
||
39 | public function addToWishList($data, Form $form) |
||
48 | } |
||
49 | } |
||
50 |