public function indexAction ()
    {
        $layoutGroups = array_map(
            function ($elementType)
            {
                return [
                    "title"       => ucfirst($elementType) . "s",
                    "elementType" => $elementType,
                    "elements"    => $this->elementTypesModel->getListedElements($elementType),
                ];
            },
            $this->elementTypesModel->getAllElementTypes()
        );


        return $this->twig->render("@core/index.twig", [
            "layoutGroups" => $layoutGroups,
            "downloads"    => $this->downloadModel->getAllDownloads(),
        ]);
    }
public function indexAction ()
    {
        $layoutGroups = array_map(
            function ($elementType)
            {
                return [
                    "title"       => ucfirst($elementType) . "s",
                    "elementType" => $elementType,
                    "elements"    => $this->elementTypesModel->getListedElements($elementType),
                ];
            },
            $this->elementTypesModel->getAllElementTypes()
        );


        return $this->twig->render("@core/index.twig", [
            "layoutGroups" => $layoutGroups,
            "downloads"    => $this->downloadModel->getAllDownloads(),
        ]);
    }
public function indexAction ( ) { $ layoutGroups = array_map ( function ( $ elementType ) { return [ "title" => ucfirst ( $ elementType ) . "s" , "elementType" => $ elementType , "elements" => $ this -> elementTypesModel -> getListedElements ( $ elementType ) , ] ; } , $ this -> elementTypesModel -> getAllElementTypes ( ) ) ; return $ this -> twig -> render ( "@core/index.twig" , [ "layoutGroups" => $ layoutGroups , "downloads" => $ this -> downloadModel -> getAllDownloads ( ) , ] ) ; }
Handles the index action

@return string
Handles the index action