_adminSession = $adminSession; } /** * {@inheritdoc} */ public function getUserId() { return $this->_adminSession->hasUser() ? (int)$this->_adminSession->getUser()->getId() : null; } /** * {@inheritdoc} */ public function getUserType() { return UserContextInterface::USER_TYPE_ADMIN; } }