Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a98801db
Unverified
Commit
a98801db
authored
Feb 10, 2020
by
Alex Pott
Browse files
Issue
#3112366
by Hardik_Patel_12: Remove all
@deprecated
code from node module
parent
c68b4e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/node/src/Controller/NodeViewController.php
View file @
a98801db
...
...
@@ -37,14 +37,13 @@ class NodeViewController extends EntityViewController {
* @param \Drupal\Core\Render\RendererInterface $renderer
* The renderer service.
* @param \Drupal\Core\Session\AccountInterface $current_user
* The current user. For backwards compatibility this is optional, however
* this will be removed before Drupal 9.0.0.
* The current user.
* @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
* The entity repository.
*/
public
function
__construct
(
EntityTypeManagerInterface
$entity_type_manager
,
RendererInterface
$renderer
,
AccountInterface
$current_user
=
NULL
,
EntityRepositoryInterface
$entity_repository
=
NULL
)
{
public
function
__construct
(
EntityTypeManagerInterface
$entity_type_manager
,
RendererInterface
$renderer
,
AccountInterface
$current_user
,
EntityRepositoryInterface
$entity_repository
)
{
parent
::
__construct
(
$entity_type_manager
,
$renderer
);
$this
->
currentUser
=
$current_user
?:
\
Drupal
::
currentUser
()
;
$this
->
currentUser
=
$current_user
;
$this
->
entityRepository
=
$entity_repository
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment