protected function Twig_Node_Expression_Call::normalizeName in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/Node/Expression/Call.php \Twig_Node_Expression_Call::normalizeName()
1 call to Twig_Node_Expression_Call::normalizeName()
- Twig_Node_Expression_Call::getArguments in vendor/
Twig/ Node/ Expression/ Call.php
File
- vendor/
Twig/ Node/ Expression/ Call.php, line 243
Class
Code
protected function normalizeName($name) {
return strtolower(preg_replace(array(
'/([A-Z]+)([A-Z][a-z])/',
'/([a-z\\d])([A-Z])/',
), array(
'\\1_\\2',
'\\1_\\2',
), $name));
}