You are here

public static function Container::camelize in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Container.php \Symfony\Component\DependencyInjection\Container::camelize()

Camelizes a string.

Parameters

string $id A string to camelize:

Return value

string The camelized string

6 calls to Container::camelize()
BookController::bookExport in core/modules/book/src/Controller/BookController.php
Generates representations of a book page and its children.
ContainerTest::testCamelize in vendor/symfony/dependency-injection/Tests/ContainerTest.php
@dataProvider dataForTestCamelize
EntityViewsData::mapSingleFieldViewsData in core/modules/views/src/EntityViewsData.php
Provides the views data for a given data type and schema field.
PhpDumper::camelize in vendor/symfony/dependency-injection/Dumper/PhpDumper.php
Convert a service id to a valid PHP method name.
ViewsHandlerManager::__construct in core/modules/views/src/Plugin/ViewsHandlerManager.php
Constructs a ViewsHandlerManager object.

... See full list

File

vendor/symfony/dependency-injection/Container.php, line 526

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public static function camelize($id) {
  return strtr(ucwords(strtr($id, array(
    '_' => ' ',
    '.' => '_ ',
    '\\' => '_ ',
  ))), array(
    ' ' => '',
  ));
}