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

Breadcrumb

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

function MatcherDumper::__construct

Same name in this branch
  1. 11.1.x vendor/symfony/routing/Matcher/Dumper/MatcherDumper.php \Symfony\Component\Routing\Matcher\Dumper\MatcherDumper::__construct()
  2. 11.1.x core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper::__construct()

Construct the MatcherDumper.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection which will be used to store the route information.

\Drupal\Core\State\StateInterface $state: The state.

\Psr\Log\LoggerInterface $logger: The logger.

string $table: (optional) The table to store the route info in. Defaults to 'router'.

File

core/lib/Drupal/Core/Routing/MatcherDumper.php, line 48

Class

MatcherDumper
Dumps Route information to a database table.

Namespace

Drupal\Core\Routing

Code

public function __construct(Connection $connection, StateInterface $state, LoggerInterface $logger, $table = 'router') {
    if (is_null($this->tableName)) {
        $this->tableName = $table;
    }
}

API Navigation

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