protected function Twig_Node_Expression_Call::normalizeName

1 call to Twig_Node_Expression_Call::normalizeName()
Twig_Node_Expression_Call::getArguments in drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Call.php

File

drupal/core/vendor/twig/twig/lib/Twig/Node/Expression/Call.php, line 167

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