You are here

protected static function Permission::lowerCamelize in Organic groups 8

Converts the given string in a lowerCamelCase version.

Parameters

string $string: The string to convert.

Return value

string The converted string.

2 calls to Permission::lowerCamelize()
Permission::get in src/Permission.php
Returns the value for the given property.
Permission::set in src/Permission.php
Sets the value for the given property.

File

src/Permission.php, line 181

Class

Permission
Base class for OG permissions.

Namespace

Drupal\og

Code

protected static function lowerCamelize($string) {
  return lcfirst(str_replace(' ', '', ucwords($string)));
}