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 (opens new window)
# Public Methods
Method | Description |
---|---|
getAsciiCharMap() | Public wrapper for charsArray(). |
getLangSpecificCharsArray() | Public wrapper for \craft\helpers\langSpecificCharsArray() . |
# getAsciiCharMap()
Public wrapper for charsArray().
View source (opens new window)
Returns
# getLangSpecificCharsArray()
- Since
- 3.0.10
Public wrapper for \craft\helpers\langSpecificCharsArray()
.
View source (opens new window)
Arguments
$language
(string (opens new window)) – Language of the source string
Returns
array (opens new window) – An array of replacements
# Protected Methods
Method | Description |
---|---|
charsArray() | Returns the replacements for the toAscii() method, including any custom mappings provided by the config3:customAsciiCharMappings (opens new window) config setting. |
# charsArray()
Returns the replacements for the toAscii() method, including any custom mappings provided by the config3:customAsciiCharMappings (opens new window) config setting.
View source (opens new window)
Returns
← StringHelper Template →