Jarves\Controller\ObjectCrudController::detectObjectKeyFromRoute PHP Method

detectObjectKeyFromRoute() protected method

When ObjectCrudController is without custom sub class used, then we need to get the object information from the route, defined in Jarves\Router\RestApiLoader
protected detectObjectKeyFromRoute ( ) : string
return string
    protected function detectObjectKeyFromRoute()
    {
        $request = $this->requestStack->getCurrentRequest();
        return $request ? Objects::normalizeObjectKey($request->attributes->get('_jarves_object')) : '';
    }