protected function Twig_Node_Expression_Call::normalizeName in Translation template extractor 6.3
Same name and namespace in other branches
- 7.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 172
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));
}