function MatcherDumper::__construct
Same name in this branch
- 11.x core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper::__construct()
Same name in other branches
- 9 core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper::__construct()
- 9 core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\Routing\MatcherDumper::__construct()
- 8.9.x core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper::__construct()
- 8.9.x core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\Routing\MatcherDumper::__construct()
- 10 core/lib/Drupal/Core/ProxyClass/Routing/MatcherDumper.php \Drupal\Core\ProxyClass\Routing\MatcherDumper::__construct()
- 10 core/lib/Drupal/Core/Routing/MatcherDumper.php \Drupal\Core\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\RoutingCode
public function __construct(Connection $connection, StateInterface $state, LoggerInterface $logger, $table = 'router') {
if (is_null($this->tableName)) {
$this->tableName = $table;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.