Craft\MinimeeVariable::_run PHP Method

_run() protected method

Internal function to run variable tags
protected _run ( String $type, Array $assets, Array $settings = [] ) : String
$type String
$assets Array
$settings Array
return String
    protected function _run($type, $assets, $settings = array())
    {
        MinimeePlugin::log(Craft::t('MinimeeVariable::' . $type . '() is being run now.'));
        $minified = minimee()->service->run($type, $assets, $settings);
        if (!$minified) {
            $html = minimee()->service->makeTagsByType($type, $assets);
            return minimee()->service->makeTwigMarkupFromHtml($html);
        }
        $html = minimee()->service->makeTagsByType($type, $minified);
        return minimee()->service->makeTwigMarkupFromHtml($html);
    }
MinimeeVariable