Storage/Processor/Processor.php
public function process(string $processor, string $assetHash, array $options = []): Config
    {
        $config = $this->getConfig($processor, $assetHash, $options);

        $lastCacheDate = $this->storageManager->getLastCacheDate($config->getCacheKey(), $processor);

        if (!$config->isValid($lastCacheDate)) {
            $this->generate($config);
        }

        return $config;
    }
public function process(string $processor, string $assetHash, array $options = []): Config
    {
        $config = $this->getConfig($processor, $assetHash, $options);

        $lastCacheDate = $this->storageManager->getLastCacheDate($config->getCacheKey(), $processor);

        if (!$config->isValid($lastCacheDate)) {
            $this->generate($config);
        }

        return $config;
    }
public function process ( string $ processor , string $ assetHash , array $ options = [ ] ) : Config { $ config = $ this -> getConfig ( $ processor , $ assetHash , $ options ) ; $ lastCacheDate = $ this -> storageManager -> getLastCacheDate ( $ config -> getCacheKey ( ) , $ processor ) ; if ( ! $ config -> isValid ( $ lastCacheDate ) ) { $ this -> generate ( $ config ) ; } return $ config ; }
Called from twig function, the config is used for generating the url
Called from twig function the config is used for generating the url