Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompiledUrlMatcherDumper.php

function CompiledUrlMatcherDumper::indent

2 calls to CompiledUrlMatcherDumper::indent()
CompiledUrlMatcherDumper::compileStaticPrefixCollection in vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherDumper.php
Compiles a regexp tree of subpatterns that matches nested same-prefix routes.
CompiledUrlMatcherDumper::generateCompiledRoutes in vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherDumper.php

File

vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherDumper.php, line 455

Class

CompiledUrlMatcherDumper
CompiledUrlMatcherDumper creates PHP arrays to be used with CompiledUrlMatcher.

Namespace

Symfony\Component\Routing\Matcher\Dumper

Code

private function indent(string $code, int $level = 1) : string {
    return preg_replace('/^./m', str_repeat('    ', $level) . '$0', $code);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal