src/Admin/Model/PageAdmin.php
protected function getPageTemplates()
    {
        $choices = [];

        $templates = $this->getContainer()->getParameter('networking_init_cms.page.templates');
        foreach ($templates as $key => $template) {
            $choices[$template['name']] = $key;
        }

        return $choices;
    }
protected function getPageTemplates()
    {
        $choices = [];

        $templates = $this->getContainer()->getParameter('networking_init_cms.page.templates');
        foreach ($templates as $key => $template) {
            $choices[$template['name']] = $key;
        }

        return $choices;
    }
protected function getPageTemplates ( ) { $ choices = [ ] ; $ templates = $ this -> getContainer ( ) -> getParameter ( 'networking_init_cms.page.templates' ) ; foreach ( $ templates as $ key => $ template ) { $ choices [ $ template [ 'name' ] ] = $ key ; } return $ choices ; }
Get the page templates from the configuration and create an array to use in the
choice field in the admin form.

@return array
Get the page templates from the configuration and create an array to use in the choice field in the admin form .