public function elementsOverviewAction ($elementType)
    {
        try
        {
            $elementReferences = array_map(
                function (Element $element)
                {
                    return $element->getReference();
                },
                $this->elementTypesModel->getListedElements($elementType)
            );

            return $this->twig->render("@core/elements_overview_page.twig", [
                "elementReferences" => $elementReferences
            ]);
        }
        catch (\InvalidArgumentException $e)
        {
            throw new NotFoundHttpException("Unknown element type '{$elementType}'.", $e);
        }
    }
public function elementsOverviewAction ($elementType)
    {
        try
        {
            $elementReferences = array_map(
                function (Element $element)
                {
                    return $element->getReference();
                },
                $this->elementTypesModel->getListedElements($elementType)
            );

            return $this->twig->render("@core/elements_overview_page.twig", [
                "elementReferences" => $elementReferences
            ]);
        }
        catch (\InvalidArgumentException $e)
        {
            throw new NotFoundHttpException("Unknown element type '{$elementType}'.", $e);
        }
    }
public function elementsOverviewAction ( $ elementType ) { try { $ elementReferences = array_map ( function ( Element $ element ) { return $ element -> getReference ( ) ; } , $ this -> elementTypesModel -> getListedElements ( $ elementType ) ) ; return $ this -> twig -> render ( "@core/elements_overview_page.twig" , [ "elementReferences" => $ elementReferences ] ) ; } catch ( \ InvalidArgumentException $ e ) { throw new NotFoundHttpException ( "Unknown element type '{$elementType}'." , $ e ) ; } }
Returns a list of all elements of the given type

@param $elementType

@return string
Returns a list of all elements of the given type