GFPDFTemplatesConfigLegacy

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/legacy.php  
  1. class Legacy implements Helper_Interface_Config { 
  2.  
  3. /** 
  4. * Return the configuration structure. 
  5. * The fields key is based on our \GFPDF\Helper\Helper_Abstract_Options Settings API 
  6. * See the 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. return [ 
  12. 'core' => [ 
  13. 'show_page_names' => true,  
  14. 'show_html' => true,  
  15. 'show_section_content' => true,  
  16. 'show_empty' => true,  
  17. ],  
  18. ];