SitesController
class SitesController extends AbstractModuleController (View source)
The Neos Sites Management module controller
Traits
A trait to do easy backend module translations
A trait to add backend translation based on the backend users settings
Properties
| protected Service | $_localizationService | from BackendUserTranslationTrait | |
| protected UserService | $_userService | from BackendUserTranslationTrait | |
| protected array<string, mixed> | $moduleConfiguration | from AbstractModuleController | |
| protected Translator | $translator | from ModuleTranslationTrait | |
| protected DomainRepository | $domainRepository | ||
| protected SiteRepository | $siteRepository | ||
| protected AssetCollectionRepository | $assetCollectionRepository | ||
| protected PackageManager | $packageManager | ||
| protected SiteService | $siteService | ||
| protected SessionInterface | $session | ||
| protected string|null | $defaultContentRepositoryForNewSites | This is not 100% correct, but it is as good as we can get it to work right now It works when the created site's name will use the configuration "*" which by default uses the default preset. |
|
| protected UserService | $domainUserService | ||
| protected ContentRepositoryRegistry | $contentRepositoryRegistry |
Methods
Set the locale according to the user settings
Use this method to set an alternative title than the module label
No description
Create a new site form
Create a new empty site.
Details
protected void
initializeObject()
Set the locale according to the user settings
protected void
initializeAction()
No description
protected void
initializeView(ViewInterface $view)
No description
void
setTitle(string $title)
Use this method to set an alternative title than the module label
void
indexAction()
No description
protected
getErrorFlashMessage()
Display no flash message at all on errors.
string
getModuleLabel(string $id, array $arguments = [])
No description
void
editAction(Site $site)
A edit view for a site and its settings.
void
updateSiteAction(Site $site, string $newSiteNodeName)
Update a site
void
newSiteAction()
Create a new site form
void
createSiteNodeAction(string $packageKey, string $siteName, string $nodeType)
Create a new empty site.
void
deleteSiteAction(Site $site)
Delete a site.
void
activateSiteAction(Site $site)
Activates a site
void
deactivateSiteAction(Site $site)
Deactivates a site
void
editDomainAction(Domain $domain)
Edit a domain
void
updateDomainAction(Domain $domain)
Update a domain
void
newDomainAction(Domain|null $domain = null, Site|null $site = null)
The create a new domain action.
void
createDomainAction(Domain $domain)
Create a domain
void
deleteDomainAction(Domain $domain)
Deletes a domain attached to a site
void
activateDomainAction(Domain $domain)
Activates a domain
void
deactivateDomainAction(Domain $domain)
Deactivates a domain