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

Comments

flocondetoile created an issue. See original summary.

flocondetoile’s picture

Project: Micro Site » Micro Node
Pooja Ganjage’s picture

StatusFileSize
new679 bytes

Hi,

Creating a patch for this issue.

Please review the patch.

Thanks.

Pooja Ganjage’s picture

Status: Active » Needs review
Pooja Ganjage’s picture

StatusFileSize
new681 bytes

Status: Needs review » Needs work

The last submitted patch, 5: 3179770-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Pooja Ganjage’s picture

StatusFileSize
new708 bytes
Pooja Ganjage’s picture

StatusFileSize
new677 bytes
Pooja Ganjage’s picture

StatusFileSize
new446 bytes
Pooja Ganjage’s picture

StatusFileSize
new898 bytes
Pooja Ganjage’s picture

StatusFileSize
new899 bytes
flocondetoile’s picture

Using 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.

Pooja Ganjage’s picture

StatusFileSize
new458 bytes
Pooja Ganjage’s picture

StatusFileSize
new2.36 KB
flocondetoile’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 14: 3179770-14.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

shivam kaushal’s picture

Assigned: Unassigned » shivam kaushal
shivam kaushal’s picture

Assigned: shivam kaushal » Unassigned
Status: Needs work » Needs review
StatusFileSize
new2.42 KB

in #14, we cant define directly path here, and also we dont need to define path as its already defined in line47 under route collection,

Pooja Ganjage’s picture

StatusFileSize
new2.37 KB

Status: Needs review » Needs work

The last submitted patch, 19: 3179770-19.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Pooja Ganjage’s picture

StatusFileSize
new2.35 KB
Pooja Ganjage’s picture

StatusFileSize
new2.36 KB
Pooja Ganjage’s picture

StatusFileSize
new2.36 KB
flocondetoile’s picture

Status: Needs work » Needs review
StatusFileSize
new5.09 KB

  • flocondetoile authored dbabc4f on 8.x-1.x
    Issue #3179770 by flocondetoile: Remove NodeController::add Controller
    
flocondetoile’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.