code: public function getTemplates() {
  		$templates = array();
  		$types = $this->config->getTypes();
  		foreach ($types as $type => $type_options) {
  			foreach ($type_options as $subtype => $subtype_options) {
  				$templates[$type][$subtype] = (array) $subtype_options;
  			}
  		}
  		return $templates;
  	}
docs: Returns all registered templates
  @return array