Loader
        
        This class implements a Twig template loader for the core system and backend.
    
    
 class System\Twig\Loader
implements 
    Twig\Loader\LoaderInterfaceProperties
            
            
            
                public
            
                            
                    static
                
            
            $allowInclude
            
                :
                                                            bool
                                                                        
                        = false
                    
                            
        
        
        Allow any local file
            
            
            
                protected
            
            
            $cache
            
                :
                                                            array
                                                                        
                        = []
                    
                            
        
        
        Cache
Methods
public exists (string $name) : bool
Checks that the template exists.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            bool
                public getCacheKey (string $name) : string
Returns the Twig cache key.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            string
                public getFilename (string $name) : string
Returns the file name of the loaded template.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            string
                public getSourceContext (string $name) : Twig\Source
Returns the Twig content string.
This step is cached internally by Twig.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            Twig\Source
                public isFresh (string $name, integer $time) : bool
Determines if the content is fresh.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
| $time | integer | integer | 
Returns
            bool
                protected findTemplate (string $name) : string
Gets the path of a view file.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | string | string | 
Returns
            string
                Extended by
| Class | Description | 
|---|---|
| Loader | This class implements a Twig template loader for the CMS. | 
    Copyright © 2025 Winter CMS