private final get_control_class_name ( array $args ) : string | ||
$args | array | The field definition as sanitized in Kirki_Field. |
Résultat | string | the name of the class that will be used to create this control. |
private final function get_control_class_name($args)
{
// Set a default class name.
$class_name = 'WP_Customize_Control';
// Get the classname from the array of control classnames.
if (array_key_exists($args['type'], $this->control_types)) {
$class_name = $this->control_types[$args['type']];
}
return $class_name;
}