Neos\Neos\Controller\Module\Management\WorkspacesController::prepareOwnerOptions PHP Method

prepareOwnerOptions() protected method

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