GFPDFTemplatesConfigBlank_Slate

The configuration class name should be the same name as the PHP template file name with the following modifications: The file extension is omitted (.php) Any hyphens (-) should be replaced with underscores (_) The class name should be in sentence case (the first character of each word separated by a hyphen (-) or underscore (_) should be uppercase).

Defined (1)

The class is defined in the following location(s).

/src/templates/config/blank-slate.php  
  1. class Blank_Slate implements Helper_Interface_Config { 
  2.  
  3. /** 
  4. * Return the templates configuration structure which control what extra fields will be shown in the "Template" tab when configuring a form's PDF. 
  5. * The fields key is based on our \GFPDF\Helper\Helper_Abstract_Options Settings API 
  6. * See the Helper_Options_Fields::register_settings() method for the exact fields that can be passed in 
  7. * @return array The array, split into core components and custom fields 
  8. * @since 4.0 
  9. */ 
  10. public function configuration() { 
  11.  
  12. return [ 
  13.  
  14. /** Enable core fields */ 
  15. 'core' => [ 
  16. 'show_form_title' => true,  
  17. 'show_page_names' => true,  
  18. 'show_html' => true,  
  19. 'show_section_content' => true,  
  20. 'enable_conditional' => true,  
  21. 'show_empty' => true,  
  22. 'header' => true,  
  23. 'first_header' => true,  
  24. 'footer' => true,  
  25. 'first_footer' => true,  
  26. 'background_color' => true,  
  27. 'background_image' => true,  
  28. ],  
  29.  
  30. ];