Kirki_Output::process_property_value PHP Method

process_property_value() protected method

We need to tweak the value to make everything works as expected.
protected process_property_value ( string $property, string $value ) : array
$property string The CSS property.
$value string The value.
return array
        protected function process_property_value($property, $value)
        {
            $properties = apply_filters('kirki/' . $this->config_id . '/output/property-classnames', array('font-family' => 'Kirki_Output_Property_Font_Family', 'background-image' => 'Kirki_Output_Property_Background_Image', 'background-position' => 'Kirki_Output_Property_Background_Position'));
            if (array_key_exists($property, $properties)) {
                $classname = $properties[$property];
                $obj = new $classname($property, $value);
                return $obj->get_value();
            }
            return $value;
        }