eZ\Publish\Core\REST\Server\Controller\Location::extractLocationIdFromPath PHP Method

extractLocationIdFromPath() private method

Extracts and returns an item id from a path, e.g. /1/2/58 => 58.
private extractLocationIdFromPath ( string $path ) : mixed
$path string
return mixed
    private function extractLocationIdFromPath($path)
    {
        $pathParts = explode('/', $path);
        return array_pop($pathParts);
    }