public RouteProvider::__construct(Connection $connection, StateInterface $state, CurrentPathStack $current_path, CacheBackendInterface $cache_backend, InboundPathProcessorInterface $path_processor, CacheTagsInvalidatorInterface $cache_tag_invalidator, $table = 'router')
Constructs a new PathMatcher.
Parameters
\Drupal\Core\Database\Connection $connection: A database connection object.
\Drupal\Core\State\StateInterface $state: The state.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend.
\Drupal\Core\PathProcessor\InboundPathProcessorInterface $path_processor: The path processor.
\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tag_invalidator: The cache tag invalidator.
string $table: (Optional) The table in the database to use for matching. Defaults to 'router'
File
- core/lib/Drupal/Core/Routing/RouteProvider.php, line 110
Class
- RouteProvider
- A Route Provider front-end for all Drupal-stored routes.
Namespace
Drupal\Core\Routing
Code
1 2 3 4 5 6 7 8 9 | public function __construct(Connection $connection , StateInterface $state , CurrentPathStack $current_path , CacheBackendInterface $cache_backend , InboundPathProcessorInterface $path_processor , CacheTagsInvalidatorInterface $cache_tag_invalidator , $table = 'router' ) { $this ->connection = $connection ; $this ->state = $state ; $this ->currentPath = $current_path ; $this ->cache = $cache_backend ; $this ->cacheTagInvalidator = $cache_tag_invalidator ; $this ->pathProcessor = $path_processor ; $this ->tableName = $table ; } |
Please login to continue.