Google_Maps_Builder_Core_Interface

Class Google_Maps_Builder_Core_Interface.

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/admin/class-gmc-core-interface.php  
  1. abstract class Google_Maps_Builder_Core_Interface { 
  2.  
  3. /** 
  4. * Google_Maps_Builder_Core_Interface constructor. 
  5. */ 
  6. public function __construct() { 
  7. //Silencio. 
  8.  
  9. /** 
  10. * Prepare data to be included in a view loaded with gmb_include_view() 
  11. * @param array $data Optional. Data to include. If empty, the default, plugin slug is used. 
  12. * @param bool $merge Optional. If true and $data isn't empty, $data will be merged with defaults. 
  13. * @return array 
  14. */ 
  15. protected function view_data( $data = array(), $merge = false ) { 
  16. $_data = array( 'plugin_slug' => 'google-maps-builder' ); 
  17. if ( empty( $data ) ) { 
  18. $data = $_data; 
  19. } elseif ( ! empty ( $data ) && false != $merge && is_array( $data ) ) { 
  20. $data = array_merge( $data, $_data ); 
  21.  
  22. return $data; 
  23.