Conditions | 4 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public static function is($model, string $locale = null): bool |
||
10 | { |
||
11 | $homepageValue = chiefSetting(Setting::HOMEPAGE, $locale); |
||
12 | |||
13 | if(!$homepageValue || !is_object($model) || !$model instanceof ProvidesFlatReference) { |
||
14 | return false; |
||
15 | } |
||
16 | |||
17 | return $model->flatReference()->is($homepageValue); |
||
18 | } |
||
20 |