2x: Drupal\node\Controller\NodeController::add is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Define entity form routes through the _entity_form instead through the _controller directive. See https://www.drupal.org/node/3084856
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | 3179770-24.patch | 5.09 KB | flocondetoile |
| #23 | 3179770-23.patch | 2.36 KB | Pooja Ganjage |
| #22 | 3179770-22.patch | 2.36 KB | Pooja Ganjage |
| #21 | 3179770-21.patch | 2.35 KB | Pooja Ganjage |
| #19 | 3179770-19.patch | 2.37 KB | Pooja Ganjage |
Comments
Comment #2
flocondetoileComment #3
Pooja Ganjage commentedHi,
Creating a patch for this issue.
Please review the patch.
Thanks.
Comment #4
Pooja Ganjage commentedComment #5
Pooja Ganjage commentedComment #7
Pooja Ganjage commentedComment #8
Pooja Ganjage commentedComment #9
Pooja Ganjage commentedComment #10
Pooja Ganjage commentedComment #11
Pooja Ganjage commentedComment #12
flocondetoileUsing the entity_form, you don't need anymore to generate a Route for each node type enabled. You need only one route /site/{site}/add/{node_type} with note_type as parameter of the route, and you have to update the MicroNodeAddLocalActions and MicroNodeAddLocalTasks to update the route_name, and set the route_parameter.
The custom access still guard access to this route given the site and the node type.
Comment #13
Pooja Ganjage commentedComment #14
Pooja Ganjage commentedComment #15
flocondetoileComment #17
shivam kaushal commentedComment #18
shivam kaushal commentedin #14, we cant define directly path here, and also we dont need to define path as its already defined in line47 under route collection,
Comment #19
Pooja Ganjage commentedComment #21
Pooja Ganjage commentedComment #22
Pooja Ganjage commentedComment #23
Pooja Ganjage commentedComment #24
flocondetoileComment #26
flocondetoile