You are here

public static function WebformTextHelper::snakeToCamel in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Utility/WebformTextHelper.php \Drupal\webform\Utility\WebformTextHelper::snakeToCamel()

Converts snake case to camel case.

Parameters

string $string: String to be converted.

Return value

string String with snake case converted to camel case.

File

src/Utility/WebformTextHelper.php, line 54

Class

WebformTextHelper
Provides helper to operate on strings.

Namespace

Drupal\webform\Utility

Code

public static function snakeToCamel($string) {
  return static::getCamelCaseToSnakeCaseNameConverter()
    ->denormalize($string);
}