1 | <?php namespace Anomaly\DashboardModule\Http\Controller\Admin; |
||
21 | class WidgetsController extends AdminController |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * Display an index of existing entries. |
||
26 | * |
||
27 | * @param WidgetTableBuilder $table |
||
28 | * @return \Symfony\Component\HttpFoundation\Response |
||
29 | */ |
||
30 | public function index(WidgetTableBuilder $table) |
||
34 | |||
35 | /** |
||
36 | * Return the modal for choosing a widget. |
||
37 | * |
||
38 | * @param ExtensionCollection $extensions |
||
39 | * @return \Illuminate\Contracts\View\View|mixed |
||
40 | */ |
||
41 | public function choose(ExtensionCollection $extensions) |
||
48 | |||
49 | /** |
||
50 | * Create a new entry. |
||
51 | * |
||
52 | * @param ExtensionCollection $extensions |
||
53 | * @param WidgetExtensionFormBuilder|WidgetFormBuilder $form |
||
54 | * @param WidgetFormBuilder $widget |
||
55 | * @param ConfigurationFormBuilder $configuration |
||
56 | * @return \Symfony\Component\HttpFoundation\Response |
||
57 | */ |
||
58 | public function create( |
||
72 | |||
73 | /** |
||
74 | * Edit an existing entry. |
||
75 | * |
||
76 | * @param ExtensionCollection $extensions |
||
77 | * @param WidgetExtensionFormBuilder|WidgetFormBuilder $form |
||
78 | * @param WidgetFormBuilder $widget |
||
79 | * @param ConfigurationFormBuilder $configuration |
||
80 | * @return \Symfony\Component\HttpFoundation\Response |
||
81 | */ |
||
82 | public function edit( |
||
102 | |||
103 | public function save(WidgetRepositoryInterface $widgets) |
||
117 | } |
||
118 |