| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class FieldExtension extends AbstractExtension |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var FieldRendererInterface |
||
| 15 | */ |
||
| 16 | private $renderer; |
||
| 17 | |||
| 18 | public function __construct(FieldRendererInterface $renderer) |
||
| 19 | { |
||
| 20 | $this->renderer = $renderer; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getFunctions(): array |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function renderField(FieldInterface $field, $entity): string |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Return the field header label. |
||
| 38 | * |
||
| 39 | * @param ViewInterface $admin |
||
| 40 | * @param FieldInterface $field |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function renderFieldHeader(ViewInterface $admin, FieldInterface $field) |
||
| 49 |