Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getElementsForSearch() |
||
29 | { |
||
30 | $output = []; |
||
31 | foreach ($this->owner->hasOne() as $key => $class) { |
||
32 | if ($class !== ElementalArea::class) { |
||
33 | continue; |
||
34 | } |
||
35 | |||
36 | /** @var ElementalArea $area */ |
||
37 | $area = $this->owner->$key(); |
||
38 | if ($area) { |
||
39 | $output[] = strip_tags($area->forTemplate()); |
||
40 | } |
||
41 | } |
||
42 | return implode($output); |
||
43 | } |
||
61 |