public function handleGetTemplateGroup(GetTemplateGroupEvent $event)
    {
        /** @var Controller $controllerAdapter */
        $controllerAdapter = $this->framework->getAdapter(Controller::class);

        $templatesArray = $controllerAdapter->getTemplateGroup($event->getPrefix());
        $templates      = $event->getTemplates();

        foreach ($templatesArray as $templateName => $templateLabel) {
            $templates[$templateName] = $templateLabel;
        }
    }
public function handleGetTemplateGroup(GetTemplateGroupEvent $event)
    {
        /** @var Controller $controllerAdapter */
        $controllerAdapter = $this->framework->getAdapter(Controller::class);

        $templatesArray = $controllerAdapter->getTemplateGroup($event->getPrefix());
        $templates      = $event->getTemplates();

        foreach ($templatesArray as $templateName => $templateLabel) {
            $templates[$templateName] = $templateLabel;
        }
    }
public function handleGetTemplateGroup ( GetTemplateGroupEvent $ event ) { /** @var Controller $controllerAdapter */ $ controllerAdapter = $ this -> framework -> getAdapter ( Controller :: class ) ; $ templatesArray = $ controllerAdapter -> getTemplateGroup ( $ event -> getPrefix ( ) ) ; $ templates = $ event -> getTemplates ( ) ; foreach ( $ templatesArray as $ templateName => $ templateLabel ) { $ templates [ $ templateName ] = $ templateLabel ; } }
Collect a template group.

@param GetTemplateGroupEvent $event The event.

@return void
Collect a template group .