main/core/Listener/Administration/TechnicalListener.php
public function onDisplayTool(OpenAdministrationToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:administration:technical.html.twig', [
                'context' => [
                    'type' => Tool::ADMINISTRATION,
                ],
                'parameters' => $this->serializer->serialize(),
                'adminTools' => array_map(function (AdminTool $tool) {
                    return $tool->getName();
                }, $this->om->getRepository(AdminTool::class)->findAll()),
            ]
        );

        $event->setResponse(new Response($content));
        $event->stopPropagation();
    }
public function onDisplayTool(OpenAdministrationToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:administration:technical.html.twig', [
                'context' => [
                    'type' => Tool::ADMINISTRATION,
                ],
                'parameters' => $this->serializer->serialize(),
                'adminTools' => array_map(function (AdminTool $tool) {
                    return $tool->getName();
                }, $this->om->getRepository(AdminTool::class)->findAll()),
            ]
        );

        $event->setResponse(new Response($content));
        $event->stopPropagation();
    }
public function onDisplayTool ( OpenAdministrationToolEvent $ event ) { $ content = $ this -> templating -> render ( 'ClarolineCoreBundle:administration:technical.html.twig' , [ 'context' => [ 'type' => Tool :: ADMINISTRATION , ] , 'parameters' => $ this -> serializer -> serialize ( ) , 'adminTools' => array_map ( function ( AdminTool $ tool ) { return $ tool -> getName ( ) ; } , $ this -> om -> getRepository ( AdminTool :: class ) -> findAll ( ) ) , ] ) ; $ event -> setResponse ( new Response ( $ content ) ) ; $ event -> stopPropagation ( ) ; }
Displays technical administration tool.

@DI\Observe("administration_tool_technical_settings")

@param OpenAdministrationToolEvent $event
Displays technical administration tool .