private function getPageIdFromUrlHook(?array $fragments): ?array
    {
        if (!(isset($GLOBALS['TL_HOOKS']['getPageIdFromUrl']) && \is_array($GLOBALS['TL_HOOKS']['getPageIdFromUrl']))) {
            return $fragments;
        }
        foreach ($GLOBALS['TL_HOOKS']['getPageIdFromUrl'] as $callback) {
            $fragments = System::importStatic($callback[0])->{$callback[1]}($fragments);
        }

        return $fragments;
    }