Stringy

Type
Class
Namespace
craft\helpers
Inherits
craft\helpers\Stringy » Stringy\Stringy
Since
3.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

Signature

public array getAsciiCharMap ( )

getLangSpecificCharsArray()

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

View source

Arguments

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

Returns

array – An array of replacements

Signature

public static array getLangSpecificCharsArray ( \craft\helpers\string $language = 'en' )

Protected Methods

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

charsArray()

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

View source

Returns

array

Signature

protected array charsArray ( )