You are here

public static function EntityLinks::toCamelCase in Thunder 6.2.x

Convert string to camel case.

Parameters

string $input: Input string.

Return value

string Camel case string.

File

modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/EntityLinks.php, line 112

Class

EntityLinks
Plugin to resolve all the links for an entity.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\DataProducer

Code

public static function toCamelCase($input) {
  return lcfirst(str_replace(' ', '', ucwords(str_replace('-', ' ', $input))));
}