Service
class Service (View source)
Properties
| protected EntityManagerInterface | $entityManager | ||
| protected Application | $app | ||
| protected Repository | $config | ||
| protected ResolverFactory | $resolverFactory | ||
| protected Cache | $cache | 
Methods
                    setEntityManager(EntityManagerInterface $entityManager)
        
                                            
                
            No description
                    __construct(EntityManagerInterface $entityManager, Application $app, Repository $configRepository, ResolverFactory $resolverFactory)
        
                                            
                
            No description
                    setCache(mixed $cache)
        
                                            
                
            No description
                    Site|null
                
                
                    getByHandle(string $handle)
        
                                            
                
            No description
                    Site|null
                
                
                    getDefault()
        
                                            
                
            No description
                    Tree|null
                
                
                    getSiteTreeByID(int $siteTreeID)
        
                                            
                
            No description
                    Site[]
                
                
                    getList(string $sort = 'name')
        
                                            
                
            Returns a list of sites. If $sort = 'name' then the sites will be sorted by site name. If sort is false it will not be sorted. Only name is supported for now.
                    installDefault(string|null $locale = null)
        
                                            
                
            No description
                    Site|null
                
                
                    getActiveSiteForEditing()
        
                                            
                
            No description
Details
        
                            
    setEntityManager(EntityManagerInterface $entityManager)
        
    
    No description
        
                            
    __construct(EntityManagerInterface $entityManager, Application $app, Repository $configRepository, ResolverFactory $resolverFactory)
        
    
    No description
        
                            
    setCache(mixed $cache)
        
    
    No description
        
                            Site|null
    getByHandle(string $handle)
        
    
    No description
        
                            Site|null
    getDefault()
        
    
    No description
        
                            Site
    add(Type $type, Theme $theme, string $handle, string $name, string $locale, bool $default = false)
        
    
    No description
        
                            Tree|null
    getSiteTreeByID(int $siteTreeID)
        
    
    No description
        
                            Site|null
    getByID(int $id)
        
    
    No description
        
                            
    delete(Site $site)
        
    
    No description
        
                            Site[]
    getList(string $sort = 'name')
        
    
    Returns a list of sites. If $sort = 'name' then the sites will be sorted by site name. If sort is false it will not be sorted. Only name is supported for now.
        
                            Site
    installDefault(string|null $locale = null)
        
    
    No description
        
        final                    Site|null
    getSite()
        
    
    No description
        
        final                    Site|null
    getActiveSiteForEditing()
        
    
    No description