src/Admin/Model/PageAdmin.php
protected function getDefaultTemplate()
    {
        if ($this->getSubject()->getId()) {
            return $this->getSubject()->getTemplateName();
        }
        $templates = $this->getContainer()->getParameter('networking_init_cms.page.templates');
        reset($templates);
        $defaultTemplate = key($templates);

        return $defaultTemplate;
    }
protected function getDefaultTemplate()
    {
        if ($this->getSubject()->getId()) {
            return $this->getSubject()->getTemplateName();
        }
        $templates = $this->getContainer()->getParameter('networking_init_cms.page.templates');
        reset($templates);
        $defaultTemplate = key($templates);

        return $defaultTemplate;
    }
protected function getDefaultTemplate ( ) { if ( $ this -> getSubject ( ) -> getId ( ) ) { return $ this -> getSubject ( ) -> getTemplateName ( ) ; } $ templates = $ this -> getContainer ( ) -> getParameter ( 'networking_init_cms.page.templates' ) ; reset ( $ templates ) ; $ defaultTemplate = key ( $ templates ) ; return $ defaultTemplate ; }
If there is an object get the object template variable, else get first in template array.

@return string
If there is an object get the object template variable else get first in template array .