public function beforeRun(SourceSetEvent $sourceSetEvent): void
    {
        $updated = $sourceSetEvent->updatedSources();
        if ($updated) {
            $this->twig->invalidateLoadedTemplates();
        }
    }
public function beforeRun(SourceSetEvent $sourceSetEvent): void
    {
        $updated = $sourceSetEvent->updatedSources();
        if ($updated) {
            $this->twig->invalidateLoadedTemplates();
        }
    }
public function beforeRun ( SourceSetEvent $ sourceSetEvent ) : void { $ updated = $ sourceSetEvent -> updatedSources ( ) ; if ( $ updated ) { $ this -> twig -> invalidateLoadedTemplates ( ) ; } }
Invalidate templates if any of the sources have been updated.

@param SourceSetEvent $sourceSetEvent Source Set Event
Invalidate templates if any of the sources have been updated .