Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
node.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 May 2013 at 09:06 UTC
Updated:
29 Jul 2014 at 22:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
damiankloip commentedI'll take this one.
Comment #2
internetdevels commentedAs this issue hasn`t been fixed yet we are going to work today with this issue during Code Sprint UA.
Comment #3
internetdevels commentedPatch attached.
Comment #4
dawehnerGreat stuff!
I guess on the longrun this controller will be receive some service, so let's implement ControllerInterface already.
Let's also document the redirect response.
Shouldn't we inject this into the class using create()? On the longrun this class will have dependencies so it needs dependency injection.
\Drupal::requesty() can then also be injected. Nice trick btw.!
Let's remove the whitespace and add a new line and the end of a file.
You don't use the entity manager in the NodeAddAccess controller, is that on purpose?
Comment #6
dawehnerIsn't that a duplicate of #1987762: Convert node_add_page() to a new style controller ?
Comment #7
internetdevels commentedyep(
This issue is duplicate to #1987762: Convert node_add_page() to a new style controller.
Comment #8
damiankloip commentedThe other issue is correct to convert the node_add_page() callback. This issue is to port the node_add() callback i.e. 'node/add/%node_type'. So right issue, wrong patch :)
Comment #9
damiankloip commentedI'm going to roll the actual conversion of node_add into #1987762: Convert node_add_page() to a new style controller, as it will conflict quite a bit. So let's close this one again.