When a user is logged in the User menu shows 'My Account' link and the 'Logout' link. However, when logged out the menu disappears.
How do I make a menu link to the user login page that only shows for anonymous users in the User Menu?
If Trey posted his comment as an answer, I would have checked it. I have disabled the block module since I use context. I created a second sitewide context that is triggered by the anonymous user role and placed the menu block with the link for login page in the user region. It works.
I still would like to see this accomplished in code. I tried to access the variables through preprocess functions but the menu links are already rendered by that time.