| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class AssetExistsViewHelper extends AbstractViewHelper |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var boolean |
||
| 13 | */ |
||
| 14 | protected $escapeOutput = false; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @throws \Neos\FluidAdaptor\Core\ViewHelper\Exception |
||
| 18 | */ |
||
| 19 | public function initializeArguments() |
||
| 20 | { |
||
| 21 | parent::initializeArguments(); |
||
| 22 | |||
| 23 | $this->registerArgument('asset', AssetInterface::class, 'AssetInterface', true); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Checks if an asset exists. |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function render() : string |
||
| 42 | } |
||
| 43 | } |
||
| 44 |