PartKeepr\AuthBundle\Services\UserPreferenceService::getPreferenceValue PHP Method

getPreferenceValue() public method

Returns a specific preference value for the given user.
public getPreferenceValue ( User $user, string $key ) : string
$user PartKeepr\AuthBundle\Entity\User The user to retrieve the preference for
$key string The preference key to retrieve
return string The preference string
    public function getPreferenceValue(User $user, $key)
    {
        $userPreference = $this->getPreference($user, $key);
        return $userPreference->getPreferenceValue();
    }