class RestoreController extends AbstractModuleController (View source)

internal  for communication within the Workspace UI only
 

The Neos Restore 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<string, mixed> $moduleConfiguration from  AbstractModuleController
protected $defaultViewObjectName
protected NodeLabelGeneratorInterface $nodeLabelGenerator
protected ContentRepositoryRegistry $contentRepositoryRegistry
protected Context $securityContext
protected UserService $userService
protected Translator $translator
protected TrashBin $trashBin
protected ContentRepositoryAuthorizationService $authorizationService
protected WorkspaceService $workspaceService

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.

void
showAction(WorkspaceName $workspaceName, string|null $sorting = null, int $page = 1, string $searchTerm = '')

Display a list of unpublished content

array
paginationRange(int $numberOfPages, int $currentPage)

No description

void
restoreNodeConfirmationAction(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId)

No description

void
restoreNodeAction(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId)

No description

void
restoreNodeAggregate(NodeAggregateId $nodeAggregateId, WorkspaceName $workspaceName, ContentRepository $contentRepository)

No description

void
requireWorkspaceToBeInSync(WorkspaceName $workspaceName, ContentRepository $contentRepository)

No description

array
gatherAdditionallyRestoredDescendants(NodeAggregateId $nodeAggregateId, array $descendants, ContentGraphInterface $contentGraph)

No description

string
getModuleLabel(string $id, array $arguments = [], mixed $quantity = 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 getErrorFlashMessage()

Display no flash message at all on errors.

void showAction(WorkspaceName $workspaceName, string|null $sorting = null, int $page = 1, string $searchTerm = '')

Display a list of unpublished content

Parameters

WorkspaceName $workspaceName
string|null $sorting
int $page
string $searchTerm

Return Value

void

protected array paginationRange(int $numberOfPages, int $currentPage)

No description

Parameters

int $numberOfPages
int $currentPage

Return Value

array

void restoreNodeConfirmationAction(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId)

No description

Parameters

WorkspaceName $workspaceName
NodeAggregateId $nodeAggregateId

Return Value

void

void restoreNodeAction(WorkspaceName $workspaceName, NodeAggregateId $nodeAggregateId)

No description

Parameters

WorkspaceName $workspaceName
NodeAggregateId $nodeAggregateId

Return Value

void

protected void restoreNodeAggregate(NodeAggregateId $nodeAggregateId, WorkspaceName $workspaceName, ContentRepository $contentRepository)

No description

Parameters

NodeAggregateId $nodeAggregateId
WorkspaceName $workspaceName
ContentRepository $contentRepository

Return Value

void

protected DimensionSpacePointSet requireDimensionSpacePointsTheNodeAggregateIsRemovedIn(NodeAggregateId $nodeAggregateId, WorkspaceName $workspaceName, ContentRepository $contentRepository)

No description

Parameters

NodeAggregateId $nodeAggregateId
WorkspaceName $workspaceName
ContentRepository $contentRepository

Return Value

DimensionSpacePointSet

protected void requireWorkspaceToBeInSync(WorkspaceName $workspaceName, ContentRepository $contentRepository)

No description

Parameters

WorkspaceName $workspaceName
ContentRepository $contentRepository

Return Value

void

protected array gatherAdditionallyRestoredDescendants(NodeAggregateId $nodeAggregateId, array $descendants, ContentGraphInterface $contentGraph)

No description

Parameters

NodeAggregateId $nodeAggregateId
array $descendants
ContentGraphInterface $contentGraph

Return Value

array

protected RestorableNodes gatherAdditionalAncestorsThatWillBeRestored(NodeAggregateId $nodeAggregateId, RestorableNodes $ancestors, ContentGraphInterface $contentGraph)

No description

Parameters

NodeAggregateId $nodeAggregateId
RestorableNodes $ancestors
ContentGraphInterface $contentGraph

Return Value

RestorableNodes

protected string getModuleLabel(string $id, array $arguments = [], mixed $quantity = null)

No description

Parameters

string $id
array $arguments
mixed $quantity

Return Value

string