get_material_design_colors() public static méthode

Gets an array of material-design colors.
public static get_material_design_colors ( false | string $context = false ) : array
$context false | string Allows us to get subsets of the palette.
Résultat array
 /**
  * Refresh the parameters passed to the JavaScript via JSON.
  *
  * @access public
  */
 public function to_json()
 {
     parent::to_json();
     // If no palette has been defined, use Material Design Palette.
     if (!isset($this->json['choices']['colors']) || empty($this->json['choices']['colors'])) {
         $this->json['choices']['colors'] = Kirki_Helper::get_material_design_colors('primary');
     }
     if (!isset($this->json['choices']['size']) || empty($this->json['choices']['size'])) {
         $this->json['choices']['size'] = 42;
     }
 }