Neos.Neos/Classes/Service/UserService.php
public function getUserPreference($preference)
    {
        $user = $this->getBackendUser();
        if ($user && $user->getPreferences()) {
            return $user->getPreferences()->get($preference) ?: null;
        }
    }
public function getUserPreference($preference)
    {
        $user = $this->getBackendUser();
        if ($user && $user->getPreferences()) {
            return $user->getPreferences()->get($preference) ?: null;
        }
    }
public function getUserPreference ( $ preference ) { $ user = $ this -> getBackendUser ( ) ; if ( $ user && $ user -> getPreferences ( ) ) { return $ user -> getPreferences ( ) -> get ( $ preference ) ? : null ; } }
Returns the stored preferences of a user

@param string $preference
@return mixed
@api
Returns the stored preferences of a user