diff --git a/common/class.Utils.php b/common/class.Utils.php index d5c92b74a..252297850 100644 --- a/common/class.Utils.php +++ b/common/class.Utils.php @@ -207,4 +207,9 @@ public static function toHumanReadablePhpString($value, $indentation = 0) return (string) $returnValue; } + + public static function getResourceId(string $uri): string + { + return substr($uri, strpos($uri, '#') + 1); + } }