Newscoop\Services\UserTypeService::getOptions PHP Method

getOptions() public method

Get user type options
public getOptions ( ) : array
return array
    public function getOptions()
    {
        $options = array();
        foreach ($this->getRepository()->findAll() as $userType) {
            $options[$userType->getId()] = $userType->getName();
        }
        return $options;
    }