protected static function WebformTextHelper::getCamelCaseToSnakeCaseNameConverter in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Utility/WebformTextHelper.php \Drupal\webform\Utility\WebformTextHelper::getCamelCaseToSnakeCaseNameConverter()
Get camel case to snake case converter.
Return value
\Symfony\Component\Serializer\NameConverter\NameConverterInterface Camel case to snake case converter.
File
- src/
Utility/ WebformTextHelper.php, line 25
Class
- WebformTextHelper
- Provides helper to operate on strings.
Namespace
Drupal\webform\UtilityCode
protected static function getCamelCaseToSnakeCaseNameConverter() {
if (!isset(static::$converter)) {
static::$converter = new CamelCaseToSnakeCaseNameConverter();
}
return static::$converter;
}