class SitesController extends AbstractModuleController (View source)

The Neos Sites Management module controller

Traits

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 $moduleConfiguration from  AbstractModuleController
protected DomainRepository $domainRepository
protected SiteRepository $siteRepository
protected NodeDataRepository $nodeDataRepository
protected ContextFactoryInterface $nodeContextFactory
protected NodeService $nodeService
protected NodeTypeManager $nodeTypeManager
protected WorkspaceRepository $workspaceRepository
protected AssetCollectionRepository $assetCollectionRepository
protected PackageManager $packageManager
protected SiteImportService $siteImportService
protected SiteService $siteService
protected SessionInterface $session
protected Translator $translator

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

Message
getErrorFlashMessage()

Display no flash message at all on errors.

injectThrowableStorage(ThrowableStorageInterface $throwableStorage)

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(Site $site = null)

Create a new site form.

void
createSitePackageAction(string $packageKey, string $generatorClass, string $siteName)

Create a new site-package and directly import it.

void
importSiteAction(string $packageKey)

Import a site from site package.

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 $domain = null, Site $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

void
unsetLastVisitedNodeAndRedirect(string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = [], int $delay = 0, int $statusCode = 303, string $format = null)

No description

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 Message getErrorFlashMessage()

Display no flash message at all on errors.

Return Value

Message

returns false

injectThrowableStorage(ThrowableStorageInterface $throwableStorage)

No description

Parameters

ThrowableStorageInterface $throwableStorage

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(Site $site = null)

Create a new site form.

Parameters

Site $site

Site to create

Return Value

void

void createSitePackageAction(string $packageKey, string $generatorClass, string $siteName)

Create a new site-package and directly import it.

Parameters

string $packageKey

Package Name to create

string $generatorClass

Generator Class to generate the site package

string $siteName

Site Name to create

Return Value

void

void importSiteAction(string $packageKey)

Import a site from site package.

Parameters

string $packageKey

Package from where the import will come

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 $domain = null, Site $site = null)

The create a new domain action.

Parameters

Domain $domain
Site $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

protected void unsetLastVisitedNodeAndRedirect(string $actionName, string $controllerName = null, string $packageKey = null, array $arguments = [], int $delay = 0, int $statusCode = 303, string $format = null)

No description

Parameters

string $actionName

Name of the action to forward to

string $controllerName

Unqualified object name of the controller to forward to. If not specified, the current controller is used.

string $packageKey

Key of the package containing the controller to forward to. If not specified, the current package is assumed.

array $arguments

Array of arguments for the target action

int $delay

(optional) The delay in seconds. Default is no delay.

int $statusCode

(optional) The HTTP status code for the redirect. Default is "303 See Other"

string $format

The format to use for the redirect URI

Return Value

void