Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class WidgetController extends Controller |
||
10 | { |
||
11 | public function index(): Renderable |
||
12 | { |
||
13 | return view('widget.campaign'); |
||
14 | } |
||
15 | |||
16 | /** |
||
17 | * Push attributes in order to correctly localize slugs. |
||
18 | * |
||
19 | * @param $attributes |
||
20 | */ |
||
21 | protected function setLocalesAttributes($attributes) |
||
22 | { |
||
23 | View::composer(['partials.alternates', 'partials.locales'], function (\Illuminate\View\View $view) use ($attributes) { |
||
24 | $view->withAttributes($attributes); |
||
25 | }); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Push translatable object in order to correctly localize slugs. |
||
30 | * |
||
31 | * @param $translatable |
||
32 | */ |
||
33 | protected function setTranslatable($translatable) |
||
37 | }); |
||
38 | } |
||
39 | } |
||
40 |