Pipe\ProcessedAsset::getBody PHP Method

getBody() public method

# Returns the body as String.
public getBody ( )
    function getBody()
    {
        if (null === $this->body) {
            $ctx = new Context($this->environment);
            $result = '';
            $body = $ctx->evaluate($this->path, array("data" => parent::getBody(), "processors" => $this->getProcessors()), $this->getLogicalPath());
            $this->dependencies = array_merge($this->dependencies, $ctx->dependencyPaths);
            $result .= join("\n", $ctx->dependencyAssets);
            $result .= $body;
            $this->body = $result;
        }
        return $this->body;
    }