WPLessPlugin::processStylesheet PHP Метод

processStylesheet() публичный Метод

Process a single stylesheet
С версии: 1.1
Автор: oncletom
public processStylesheet ( string $handle, $force = false ) : WPLessStylesheet
$handle string
$force boolean If set to true, rebuild all stylesheets, without considering they are updated or not
Результат WPLessStylesheet
    public function processStylesheet($handle, $force = false)
    {
        $force = !!$force ? $force : $this->configuration->alwaysRecompile();
        $wp_styles = $this->getStyles();
        $stylesheet = new WPLessStylesheet($wp_styles->registered[$handle], $this->getCompiler()->getVariables());
        if ($this->configuration->getCompilationStrategy() === 'legacy' && $stylesheet->hasToCompile()) {
            $this->getCompiler()->saveStylesheet($stylesheet);
        } elseif ($this->configuration->getCompilationStrategy() !== 'legacy') {
            $this->getCompiler()->cacheStylesheet($stylesheet, $force);
        }
        $wp_styles->registered[$handle]->src = $stylesheet->getTargetUri();
        return $stylesheet;
    }