balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

base.php (859B)


      1 <?php
      2 namespace Elementor\Core\Page_Assets\Managers\Font_Icon_Svg;
      3 
      4 use Elementor\Core\Base\Base_Object;
      5 
      6 if ( ! defined( 'ABSPATH' ) ) {
      7 	exit; // Exit if accessed directly.
      8 }
      9 
     10 /**
     11  * Elementor Font Icon Svg.
     12  *
     13  * @since 3.4.0
     14  */
     15 abstract class Base extends Base_Object {
     16 	protected static $icon;
     17 
     18 	abstract protected static function get_font_name();
     19 
     20 	abstract protected static function get_config_key();
     21 
     22 	abstract protected static function get_config_version();
     23 
     24 	abstract protected static function get_config_file_path();
     25 
     26 	protected static function get_config_data() {
     27 		return [];
     28 	}
     29 
     30 	public static function get_config( $icon ) {
     31 		self::$icon = $icon;
     32 
     33 		return [
     34 			'key' => static::get_config_key(),
     35 			'version' => static::get_config_version(),
     36 			'file_path' => static::get_config_file_path(),
     37 			'data' => static::get_config_data(),
     38 		];
     39 	}
     40 }