FluidTYPO3\Vhs\ViewHelpers\Asset\AbstractAssetViewHelper::build PHP Method

build() public method

- if necessary compile the Asset (LESS, SASS, CoffeeScript etc) - make a final rendering decision based on arguments Note that within this function the ViewHelper and TemplateVariable Containers are not dependable, you cannot use the ControllerContext and RenderingContext and you should therefore also never call renderChildren from within this function. Anything else goes; CLI commands to build, caching implementations - you name it.
public build ( ) : mixed
return mixed
    public function build()
    {
        if (false === isset($this->arguments['path']) || true === empty($this->arguments['path'])) {
            return $this->getContent();
        }
        if (true === isset($this->arguments['external']) && true === (bool) $this->arguments['external']) {
            $path = $this->arguments['path'];
        } else {
            $path = GeneralUtility::getFileAbsFileName($this->arguments['path']);
        }
        $content = file_get_contents($path);
        return $content;
    }