code: private function preHandleFragment(FragmentReference $uri, FragmentConfig $config): void
      {
          if (!isset($uri->attributes['pageModel']) && $this->hasGlobalPageObject()) {
              $uri->attributes['pageModel'] = $GLOBALS['objPage']->id;
          }
  
          if ($this->preHandlers->has($uri->controller)) {
              /** @var FragmentPreHandlerInterface $preHandler */
              $preHandler = $this->preHandlers->get($uri->controller);
              $preHandler->preHandleFragment($uri, $config);
          }
      }
docs: Adds generic attributes and query parameters before rendering.