1 | <?php |
||
20 | class StandalonePage extends ControllerBase { |
||
21 | |||
22 | /** |
||
23 | * Current route match service. |
||
24 | * |
||
25 | * @var \Drupal\Core\Routing\RouteMatchInterface |
||
26 | */ |
||
27 | protected $currentRouteMatch; |
||
28 | |||
29 | /** |
||
30 | * The browser storage. |
||
31 | * |
||
32 | * @var \Drupal\Core\Entity\EntityStorageInterface |
||
33 | */ |
||
34 | protected $browserStorage; |
||
35 | |||
36 | /** |
||
37 | * Current request. |
||
38 | * |
||
39 | * @var \Symfony\Component\HttpFoundation\Request |
||
40 | */ |
||
41 | protected $request; |
||
42 | |||
43 | /** |
||
44 | * Constructs StandalonePage route controller. |
||
45 | * |
||
46 | * @param RouteMatchInterface $route_match |
||
47 | * Current route match service. |
||
48 | * @param EntityManagerInterface $entity_manager |
||
49 | * Entity manager service. |
||
50 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
51 | * Current request. |
||
52 | */ |
||
53 | public function __construct(RouteMatchInterface $route_match, EntityManagerInterface $entity_manager, Request $request) { |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public static function create(ContainerInterface $container) { |
||
69 | |||
70 | /** |
||
71 | * Test implementation of standalone entity browser page. |
||
72 | */ |
||
73 | public function page() { |
||
83 | |||
84 | /** |
||
85 | * Standalone entity browser title callback. |
||
86 | */ |
||
87 | public function title() { |
||
91 | |||
92 | /** |
||
93 | * Loads entity browser object for this page. |
||
94 | * |
||
95 | * @return \Drupal\entity_browser\EntityBrowserInterface |
||
96 | * Loads the entity browser object |
||
97 | */ |
||
98 | protected function loadBrowser() { |
||
104 | |||
105 | } |
||
106 |