| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function renderField(FieldInterface $field, $entity): string |
||
| 11 | { |
||
| 12 | try { |
||
| 13 | return parent::renderField($field, $entity); |
||
| 14 | } catch (Exception $exception) { |
||
| 15 | $message = sprintf( |
||
| 16 | 'An error has occurred when rendering the field "%s" : %s', |
||
| 17 | $field->getName(), |
||
| 18 | $exception->getMessage() |
||
| 19 | ); |
||
| 20 | throw new Exception($message, 0, $exception); |
||
| 21 | } |
||
| 24 |