main/core/Listener/Tool/ContactsListener.php
public function onDisplayDesktopContactTool(DisplayToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:tool:contacts.html.twig', [
                'options' => $this->contactManager->getUserOptions(
                    $this->tokenStorage->getToken()->getUser()
                ),
            ]
        );

        $event->setContent($content);
        $event->stopPropagation();
    }
public function onDisplayDesktopContactTool(DisplayToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:tool:contacts.html.twig', [
                'options' => $this->contactManager->getUserOptions(
                    $this->tokenStorage->getToken()->getUser()
                ),
            ]
        );

        $event->setContent($content);
        $event->stopPropagation();
    }
public function onDisplayDesktopContactTool ( DisplayToolEvent $ event ) { $ content = $ this -> templating -> render ( 'ClarolineCoreBundle:tool:contacts.html.twig' , [ 'options' => $ this -> contactManager -> getUserOptions ( $ this -> tokenStorage -> getToken ( ) -> getUser ( ) ) , ] ) ; $ event -> setContent ( $ content ) ; $ event -> stopPropagation ( ) ; }
Displays contacts on Desktop.

@DI\Observe("open_tool_desktop_my_contacts")

@param DisplayToolEvent $event
Displays contacts on Desktop .