| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function render(array $data, ContextInterface $context) |
||
| 27 | { |
||
| 28 | $data += [ |
||
| 29 | 'val' => '', |
||
| 30 | 'name' => '', |
||
| 31 | 'escape' => true, |
||
| 32 | 'templateVars' => [], |
||
| 33 | ]; |
||
| 34 | |||
| 35 | return $this->_templates->format('richtext', [ |
||
| 36 | 'name' => $data['name'], |
||
| 37 | 'value' => $data['val'], |
||
| 38 | 'templateVars' => $data['templateVars'], |
||
| 39 | 'attrs' => $this->_templates->formatAttributes( |
||
| 40 | $data, |
||
| 41 | ['name', 'val'] |
||
| 42 | ), |
||
| 46 |