* .... * * * @api */ class PublicPathViewHelper extends AbstractViewHelper { /** * @var boolean */ protected $escapeOutput = false; public function initializeArguments(): void { parent::initializeArguments(); $this->registerArgument('path', 'string', 'Extension resource path', true); } /** * @throws CanNotResolvePublicResourceException * @throws CanNotResolveSystemResourceException */ public function render(): string { $path = (string)$this->arguments['path']; return (string)PathUtility::getSystemResourceUri($path, null, new UriGenerationOptions(cacheBusting: false)); } }