| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function edit(int $id) |
||
| 25 | { |
||
| 26 | $parentMenuItems = app(ArticleRepository::class) |
||
| 27 | ->getTopLevel() |
||
| 28 | ->filter(function (Article $article) { |
||
| 29 | return $article->technical_name != SpecialArticle::HOME; |
||
| 30 | }) |
||
| 31 | ->pluck('name', 'id') |
||
| 32 | ->prepend('Geen', 0); |
||
| 33 | |||
| 34 | return parent::edit($id)->with(compact('parentMenuItems')); |
||
| 35 | } |
||
| 36 | } |
||
| 37 |