Neos.Neos/Classes/Controller/Module/Management/WorkspacesController.php
public function updateAction(Workspace $workspace)
    {
        if ($workspace->getTitle() === '') {
            $workspace->setTitle($workspace->getName());
        }

        $this->workspaceRepository->update($workspace);
        $this->addFlashMessage($this->translator->translateById('workspaces.workspaceHasBeenUpdated', [$workspace->getTitle()], null, null, 'Modules', 'Neos.Neos'));
        $this->redirect('index');
    }
public function updateAction(Workspace $workspace)
    {
        if ($workspace->getTitle() === '') {
            $workspace->setTitle($workspace->getName());
        }

        $this->workspaceRepository->update($workspace);
        $this->addFlashMessage($this->translator->translateById('workspaces.workspaceHasBeenUpdated', [$workspace->getTitle()], null, null, 'Modules', 'Neos.Neos'));
        $this->redirect('index');
    }
public function updateAction ( Workspace $ workspace ) { if ( $ workspace -> getTitle ( ) === '' ) { $ workspace -> setTitle ( $ workspace -> getName ( ) ) ; } $ this -> workspaceRepository -> update ( $ workspace ) ; $ this -> addFlashMessage ( $ this -> translator -> translateById ( 'workspaces.workspaceHasBeenUpdated' , [ $ workspace -> getTitle ( ) ] , null , null , 'Modules' , 'Neos.Neos' ) ) ; $ this -> redirect ( 'index' ) ; }
Update a workspace

@param Workspace $workspace A workspace to update
@return void
Update a workspace