code: private function loadUserConfig()
      {
          if (!$this->widgetConfig) {
              $this->widgetConfig = $this->entityManager
                  ->getRepository('PdWidgetBundle:WidgetUser')
                  ->findOneBy([
                      'owner' => $this->tokenStorage->getToken()->getUser(),
                  ]);
  
              if (null !== $this->widgetConfig) {
                  $this->widgetConfig = $this->widgetConfig->getConfig();
              }
          }
      }
docs: Load User Widget Configuration.