Latest YouTube Video

Sunday, January 14, 2018

Getting runtime contexts will generate an E_WARNING for anonymous users

Problem/Motivation If no user is logged in, \Drupal\user\ContextProvider\CurrentUserContext::getRuntimeContexts() will trigger a warning. This is due to the assumption that the current user will exist in the database. Proposed resolution Check for a value before operating on the returned user. Remaining ...

from Google Alert - anonymous http://ift.tt/2DdgsJX
via IFTTT

No comments: