Lines Matching refs:env

342 function twig_random(Environment $env, $values = null, $max = null)  argument
369 if (null !== $charset = $env->getCharset()) {
412 function twig_date_format_filter(Environment $env, $date, $format = null, $timezone = null) argument
415 $formats = $env->getExtension('\Twig\Extension\CoreExtension')->getDateFormat();
423 return twig_date_converter($env, $date, $timezone)->format($format);
436 function twig_date_modify_filter(Environment $env, $date, $modifier) argument
438 $date = twig_date_converter($env, $date, false);
459 function twig_date_converter(Environment $env, $date = null, $timezone = null) argument
464 $timezone = $env->getExtension('\Twig\Extension\CoreExtension')->getTimezone();
485 …return new \DateTime($date, false !== $timezone ? $timezone : $env->getExtension('\Twig\Extension\…
492 … $date = new \DateTime($date, $env->getExtension('\Twig\Extension\CoreExtension')->getTimezone());
560 function twig_number_format_filter(Environment $env, $number, $decimal = null, $decimalPoint = null… argument
562 $defaults = $env->getExtension('\Twig\Extension\CoreExtension')->getNumberFormat();
661 function twig_slice(Environment $env, $item, $start, $length = null, $preserveKeys = false) argument
685 if (\function_exists('mb_get_info') && null !== $charset = $env->getCharset()) {
699 function twig_first(Environment $env, $item) argument
701 $elements = twig_slice($env, $item, 0, 1, false);
713 function twig_last(Environment $env, $item) argument
715 $elements = twig_slice($env, $item, -1, 1, false);
780 function twig_split_filter(Environment $env, $value, $delimiter, $limit = null) argument
786 if (!\function_exists('mb_get_info') || null === $charset = $env->getCharset()) {
876 function twig_reverse_filter(Environment $env, $item, $preserveKeys = false) argument
886 if (null !== $charset = $env->getCharset()) {
1002 function twig_escape_filter(Environment $env, $string, $strategy = 'html', $charset = null, $autoes… argument
1021 $charset = $env->getCharset();
1124 $escapers = $env->getExtension('\Twig\Extension\CoreExtension')->getEscapers();
1128 return \call_user_func($escapers[$strategy], $env, $string, $charset);
1294 function twig_length_filter(Environment $env, $thing) argument
1301 return mb_strlen($thing, $env->getCharset());
1309 return mb_strlen((string) $thing, $env->getCharset());
1330 function twig_upper_filter(Environment $env, $string) argument
1332 if (null !== $charset = $env->getCharset()) {
1346 function twig_lower_filter(Environment $env, $string) argument
1348 if (null !== $charset = $env->getCharset()) {
1362 function twig_title_string_filter(Environment $env, $string) argument
1364 if (null !== $charset = $env->getCharset()) {
1378 function twig_capitalize_string_filter(Environment $env, $string) argument
1380 if (null !== $charset = $env->getCharset()) {
1396 function twig_length_filter(Environment $env, $thing) argument
1432 function twig_title_string_filter(Environment $env, $string) argument
1444 function twig_capitalize_string_filter(Environment $env, $string) argument
1536 function twig_include(Environment $env, $context, $template, $variables = [], $withContext = true, … argument
1544 if ($isSandboxed = $sandboxed && $env->hasExtension('\Twig\Extension\SandboxExtension')) {
1545 $sandbox = $env->getExtension('\Twig\Extension\SandboxExtension');
1553 $result = $env->resolveTemplate($template)->render($variables);
1591 function twig_source(Environment $env, $name, $ignoreMissing = false) argument
1593 $loader = $env->getLoader();