comparison core/lib/Drupal/Core/Routing/NullRouteMatch.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Core\Routing;
4
5 use Symfony\Component\HttpFoundation\ParameterBag;
6
7 /**
8 * Stub implementation of RouteMatchInterface for when there's no matched route.
9 */
10 class NullRouteMatch implements RouteMatchInterface {
11
12 /**
13 * {@inheritdoc}
14 */
15 public function getRouteName() {
16 return NULL;
17 }
18
19 /**
20 * {@inheritdoc}
21 */
22 public function getRouteObject() {
23 return NULL;
24 }
25
26 /**
27 * {@inheritdoc}
28 */
29 public function getParameter($parameter_name) {
30 return NULL;
31 }
32
33 /**
34 * {@inheritdoc}
35 */
36 public function getParameters() {
37 return new ParameterBag();
38 }
39
40 /**
41 * {@inheritdoc}
42 */
43 public function getRawParameter($parameter_name) {
44 return NULL;
45 }
46
47 /**
48 * {@inheritdoc}
49 */
50 public function getRawParameters() {
51 return new ParameterBag();
52 }
53
54 }