Skip to content

Stringy ​

Type
Class
Namespace
craft\helpers
Inherits
craft\helpers\Stringy » Stringy\Stringy
Since
3.0.0
Deprecated in
in 3.5.0

The entire purpose of this class is so we can get at the charsArray in Stringy, which is a protected method and the creators did not want to expose as public.

View source

Public Methods ​

MethodDescription
getAsciiCharMap()Public wrapper for charsArray().
getLangSpecificCharsArray()Public wrapper for \craft\helpers\langSpecificCharsArray().

getAsciiCharMap() ​

Public wrapper for charsArray().

View source

Returns ​

array

getLangSpecificCharsArray() ​

Since
3.0.10

Public wrapper for \craft\helpers\langSpecificCharsArray().

View source

Arguments ​

  • $language (string) – Language of the source string

Returns ​

array – An array of replacements

Protected Methods ​

MethodDescription
charsArray()Returns the replacements for the toAscii() method, including any custom mappings provided by the config3:customAsciiCharMappings config setting.

charsArray() ​

Returns the replacements for the toAscii() method, including any custom mappings provided by the config3:customAsciiCharMappings config setting.

View source

Returns ​

array