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

void
initializeObject()

Set the locale according to the user settings

void
initializeAction()

No description

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

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

Details

protected void initializeObject()

Set the locale according to the user settings

Return Value

void

protected void initializeAction()

No description

Return Value

void

protected void initializeView(ViewInterface $view)

No description

Parameters

ViewInterface $view

Return Value

void

void setTitle(string $title)

Use this method to set an alternative title than the module label

Parameters

string $title

Return Value

void

void indexAction()

No description

Return Value

void

protected getErrorFlashMessage()

Display no flash message at all on errors.

string getModuleLabel(string $id, array $arguments = [])

No description

Parameters

string $id
array $arguments

Return Value

string

void editAction(Site $site)

A edit view for a site and its settings.

Parameters

Site $site

Site to view

Return Value

void

void updateSiteAction(Site $site, string $newSiteNodeName)

Update a site

Parameters

Site $site

A site to update

string $newSiteNodeName

A new site node name

Return Value

void

void newSiteAction()

Create a new site form

Return Value

void

void createSiteNodeAction(string $packageKey, string $siteName, string $nodeType)

Create a new empty site.

Parameters

string $packageKey

Package Name to create

string $siteName

Site Name to create

string $nodeType

NodeType name for the root node to create

Return Value

void

void deleteSiteAction(Site $site)

Delete a site.

Parameters

Site $site

Site to delete

Return Value

void

void activateSiteAction(Site $site)

Activates a site

Parameters

Site $site

Site to activate

Return Value

void

void deactivateSiteAction(Site $site)

Deactivates a site

Parameters

Site $site

Site to deactivate

Return Value

void

void editDomainAction(Domain $domain)

Edit a domain

Parameters

Domain $domain

Domain to edit

Return Value

void

void updateDomainAction(Domain $domain)

Update a domain

Parameters

Domain $domain

Domain to update

Return Value

void

void newDomainAction(Domain|null $domain = null, Site|null $site = null)

The create a new domain action.

Parameters

Domain|null $domain
Site|null $site

Return Value

void

void createDomainAction(Domain $domain)

Create a domain

Parameters

Domain $domain

Domain to create

Return Value

void

void deleteDomainAction(Domain $domain)

Deletes a domain attached to a site

Parameters

Domain $domain

A domain to delete

Return Value

void

void activateDomainAction(Domain $domain)

Activates a domain

Parameters

Domain $domain

Domain to activate

Return Value

void

void deactivateDomainAction(Domain $domain)

Deactivates a domain

Parameters

Domain $domain

Domain to deactivate

Return Value

void