Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function edit(int $id) |
||
38 | { |
||
39 | $parentMenuItems = app(ArticleRepository::class) |
||
40 | ->getTopLevel() |
||
41 | ->filter(function (Article $article) { |
||
42 | return $article->technical_name != SpecialArticle::HOME; |
||
43 | }) |
||
44 | ->pluck('name', 'id') |
||
45 | ->prepend('Geen', 0); |
||
46 | |||
47 | return parent::edit($id)->with(compact('parentMenuItems')); |
||
48 | } |
||
49 | } |
||
50 |