public function getTemplatesArray()
    {
        $templates = $this->getTemplates();

        foreach ($templates as $template) {
            $templates_array[$template->name] = $this->crud->makeLabel($template->name);
        }

        return $templates_array;
    }
public function getTemplatesArray()
    {
        $templates = $this->getTemplates();

        foreach ($templates as $template) {
            $templates_array[$template->name] = $this->crud->makeLabel($template->name);
        }

        return $templates_array;
    }
public function getTemplatesArray ( ) { $ templates = $ this -> getTemplates ( ) ; foreach ( $ templates as $ template ) { $ templates_array [ $ template -> name ] = $ this -> crud -> makeLabel ( $ template -> name ) ; } return $ templates_array ; }
Get all defined template as an array.

Used to populate the template dropdown in the create/update forms.
Get all defined template as an array .