TitanFrameworkOptionFont::cleanValueForGetting PHP Method

cleanValueForGetting() public method

Cleans the raw value for getting
Since: 1.4
public cleanValueForGetting ( string $value ) : string
$value string The raw value
return string The cleaned value
    public function cleanValueForGetting($value)
    {
        if (is_string($value)) {
            $value = maybe_unserialize(stripslashes($value));
        }
        if (is_array($value)) {
            $value = array_merge(self::$defaultStyling, $value);
        }
        if (!empty($value['font-family'])) {
            $value['font-type'] = in_array($value['font-family'], array_keys(self::$webSafeFonts)) ? 'websafe' : 'google';
        }
        return $value;
    }