Codesleeve\AssetPipeline\AssetPipeline::imageTag PHP Method

imageTag() public method

Create image tag
public imageTag ( string $filename, array $attributes ) : string
$filename string
$attributes array
return string
    public function imageTag($filename, $attributes)
    {
        $absolutePath = $this->file($filename);
        $webPath = $this->parser->absolutePathToWebPath($absolutePath);
        $config = $this->getConfig();
        $composer = $config['image_tag'];
        return $composer->process(array($webPath), array($absolutePath), $attributes);
    }