private function GenerateTagCommand::nameToClassName in Metatag 8
Convert the meta tag's name to a class name.
Parameters
string $name: The meta tag name to convert.
Return value
string The original string with all non-alphanumeric characters removed and converted to CamelCase.
1 call to GenerateTagCommand::nameToClassName()
- GenerateTagCommand::interact in src/
Command/ GenerateTagCommand.php
File
- src/
Command/ GenerateTagCommand.php, line 333
Class
- GenerateTagCommand
- Class GenerateTagCommand.
Namespace
Drupal\metatag\CommandCode
private function nameToClassName($name) {
return $this->stringConverter
->humanToCamelCase($name);
}