main/core/Listener/Administration/UserListener.php
public function onDisplayTool(OpenAdministrationToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:administration:users.html.twig', [
                // todo : put it in the async load of form
                'parameters' => $this->parametersSerializer->serialize(),
                'profile' => $this->profileSerializer->serialize(),
                'platformRoles' => $this->finder->search('Claroline\CoreBundle\Entity\Role', [
                    'filters' => ['type' => Role::PLATFORM_ROLE],
                ]),
            ]
        );

        $event->setResponse(new Response($content));
        $event->stopPropagation();
    }
public function onDisplayTool(OpenAdministrationToolEvent $event)
    {
        $content = $this->templating->render(
            'ClarolineCoreBundle:administration:users.html.twig', [
                // todo : put it in the async load of form
                'parameters' => $this->parametersSerializer->serialize(),
                'profile' => $this->profileSerializer->serialize(),
                'platformRoles' => $this->finder->search('Claroline\CoreBundle\Entity\Role', [
                    'filters' => ['type' => Role::PLATFORM_ROLE],
                ]),
            ]
        );

        $event->setResponse(new Response($content));
        $event->stopPropagation();
    }
public function onDisplayTool ( OpenAdministrationToolEvent $ event ) { $ content = $ this -> templating -> render ( 'ClarolineCoreBundle:administration:users.html.twig' , [ // todo : put it in the async load of form 'parameters' => $ this -> parametersSerializer -> serialize ( ) , 'profile' => $ this -> profileSerializer -> serialize ( ) , 'platformRoles' => $ this -> finder -> search ( 'Claroline\CoreBundle\Entity\Role' , [ 'filters' => [ 'type' => Role :: PLATFORM_ROLE ] , ] ) , ] ) ; $ event -> setResponse ( new Response ( $ content ) ) ; $ event -> stopPropagation ( ) ; }
Displays user administration tool.

@DI\Observe("administration_tool_user_management")

@param OpenAdministrationToolEvent $event
Displays user administration tool .