23 lines
568 B
PHP
Executable File
23 lines
568 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Evoweb\EwBase\User;
|
|
|
|
use TYPO3\CMS\Core\Utility\PathUtility;
|
|
|
|
/**
|
|
* EXAMPLE:
|
|
* page.headerData.10 = USER
|
|
* page.headerData.10.userFunc = Evoweb\EwBase\User\AssetPath->getAbsolutePublicPath
|
|
* page.headerData.10.file = EXT:site_package/Resources/Public/manifest.json
|
|
* page.headerData.10.stdWrap.wrap = <link rel="manifest" href="|"/>
|
|
*/
|
|
class AssetPath
|
|
{
|
|
public function getAbsolutePublicPath(string $content, array $conf): string
|
|
{
|
|
return PathUtility::getAbsoluteWebPath($conf['file']);
|
|
}
|
|
}
|