Conditions | 3 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
49 | 26 | protected function slugBehaviorConfig(): array |
|
50 | { |
||
51 | return [ |
||
52 | 26 | 'resourceName' => 'form', |
|
53 | 26 | 'checkAccess' => function ($params) { |
|
54 | 24 | if ( |
|
55 | 24 | isset($params['form_id']) |
|
56 | && $params['form_id'] != $this->id |
||
57 | 5 | ) { |
|
58 | 5 | throw new NotFoundHttpException( |
|
59 | 'Field doesnt contain the requested route.' |
||
60 | ); |
||
74 |