* ....
*
*
*
* @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 InvalidFileException
*/
public function renderStatic(): string
{
$path = (string)$this->arguments['path'];
return PathUtility::getPublicResourceWebPath($path);
}
}