Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
9 | public static function fieldShow(Field $f): bool |
||
10 | { |
||
11 | if ($f->getExtradata('modelHidden') !== null) { |
||
12 | return false; |
||
13 | } |
||
14 | $show = $f->getRenderable('show', null); |
||
15 | if ($show === true) { |
||
16 | return true; |
||
17 | } elseif ($show === true) { |
||
18 | return false; |
||
19 | } |
||
20 | return !empty($f->getRenderables()); |
||
21 | } |
||
23 |