| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function getHtmlOutput(): string |
||
| 42 | { |
||
| 43 | if (!$this->data instanceof CrudEntityInterface) { |
||
| 44 | throw new \InvalidArgumentException('Invalid entity'); |
||
| 45 | } |
||
| 46 | |||
| 47 | $section = $this->sectionManager->getByEntity($this->data); |
||
| 48 | |||
| 49 | $url = $this->urlGenerator->generate('parthenon_athena_crud_'.$section->getUrlTag().'_read', ['id' => $this->data->getId()]); |
||
| 50 | |||
| 51 | return sprintf('<a href="%s">%s</a>', $url, $this->data->getDisplayName()); |
||
| 52 | } |
||
| 54 |