Neos.Neos/Classes/Controller/Module/Management/WorkspacesController.php
protected function prepareOwnerOptions()
    {
        $ownerOptions = ['' => '-'];
        foreach ($this->userService->getUsers() as $user) {
            /** @var User $user */
            $ownerOptions[$this->persistenceManager->getIdentifierByObject($user)] = $user->getLabel();
        }

        return $ownerOptions;
    }
protected function prepareOwnerOptions()
    {
        $ownerOptions = ['' => '-'];
        foreach ($this->userService->getUsers() as $user) {
            /** @var User $user */
            $ownerOptions[$this->persistenceManager->getIdentifierByObject($user)] = $user->getLabel();
        }

        return $ownerOptions;
    }
protected function prepareOwnerOptions ( ) { $ ownerOptions = [ '' => '-' ] ; foreach ( $ this -> userService -> getUsers ( ) as $ user ) { /** @var User $user */ $ ownerOptions [ $ this -> persistenceManager -> getIdentifierByObject ( $ user ) ] = $ user -> getLabel ( ) ; } return $ ownerOptions ; }
Creates an array of user names and their respective labels which are possible owners for a workspace.

@return array
Creates an array of user names and their respective labels which are possible owners for a workspace .