main/core/Listener/Tool/ResourcesListener.php
public function onDisplayDesktop(DisplayToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:tool:resources.html.twig', [
                'context' => [
                    'type' => Widget::CONTEXT_DESKTOP,
                ],
                'root' => null,
            ]
        );

        $event->setContent($content);
        $event->stopPropagation();
    }
public function onDisplayDesktop(DisplayToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:tool:resources.html.twig', [
                'context' => [
                    'type' => Widget::CONTEXT_DESKTOP,
                ],
                'root' => null,
            ]
        );

        $event->setContent($content);
        $event->stopPropagation();
    }
public function onDisplayDesktop ( DisplayToolEvent $ event ) { $ content = $ this -> templating -> render ( 'ClarolineCoreBundle:tool:resources.html.twig' , [ 'context' => [ 'type' => Widget :: CONTEXT_DESKTOP , ] , 'root' => null , ] ) ; $ event -> setContent ( $ content ) ; $ event -> stopPropagation ( ) ; }
Displays resources on Desktop.

@DI\Observe("open_tool_desktop_resource_manager")

@param DisplayToolEvent $event
Displays resources on Desktop .