You are here

protected function Twig_Node_Expression_Call::normalizeName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/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/twig/lib/Twig/Node/Expression/Call.php

File

vendor/twig/twig/lib/Twig/Node/Expression/Call.php, line 243

Class

Twig_Node_Expression_Call

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));
}