@@ 181-191 (lines=11) @@ | ||
178 | ); |
|
179 | } |
|
180 | ||
181 | public function field(string $name) |
|
182 | { |
|
183 | /** @var Field $field */ |
|
184 | $field = $this->fields->get($name); |
|
185 | ||
186 | return new HtmlString( |
|
187 | view($this->helper->getViewPath($field->getTemplate(), $this->theme), [ |
|
188 | 'field' => $field, |
|
189 | ]) |
|
190 | ); |
|
191 | } |
|
192 | ||
193 | public function fields() |
|
194 | { |
|
@@ 193-204 (lines=12) @@ | ||
190 | ); |
|
191 | } |
|
192 | ||
193 | public function fields() |
|
194 | { |
|
195 | $html = ''; |
|
196 | ||
197 | foreach ($this->fields as $field) { |
|
198 | $html .= view($this->helper->getViewPath($field->getTemplate(), $this->theme), [ |
|
199 | 'field' => $field, |
|
200 | ]); |
|
201 | } |
|
202 | ||
203 | return new HtmlString($html); |
|
204 | } |
|
205 | } |
|
206 |