private function extractLocationIdFromPath($path) { $pathParts = explode('/', $path); return array_pop($pathParts); }