public function openResourceAction($node)
    {
        /** @var ResourceNode $resourceNode */
        $resourceNode = $this->container->get('claroline.persistence.object_manager')->find(ResourceNode::class, $node);

        return $this->redirectToRoute('claro_resource_show', [
            'id' => $resourceNode->getUuid(),
            'type' => $resourceNode->getResourceType()->getId(),
        ]);
    }
public function openResourceAction($node)
    {
        /** @var ResourceNode $resourceNode */
        $resourceNode = $this->container->get('claroline.persistence.object_manager')->find(ResourceNode::class, $node);

        return $this->redirectToRoute('claro_resource_show', [
            'id' => $resourceNode->getUuid(),
            'type' => $resourceNode->getResourceType()->getId(),
        ]);
    }
public function openResourceAction ( $ node ) { /** @var ResourceNode $resourceNode */ $ resourceNode = $ this -> container -> get ( 'claroline.persistence.object_manager' ) -> find ( ResourceNode :: class , $ node ) ; return $ this -> redirectToRoute ( 'claro_resource_show' , [ 'id' => $ resourceNode -> getUuid ( ) , 'type' => $ resourceNode -> getResourceType ( ) -> getId ( ) , ] ) ; }
Renders a resource application. Used for old links compatibility.

@EXT\Route("/resource/open/{node}", name="claro_resource_open_short")
@EXT\Route("/resource/open/{resourceType}/{node}", name="claro_resource_open")
@EXT\Method("GET")

@param string|int $node

@return RedirectResponse
Renders a resource application . Used for old links compatibility .