Issue #3112366 by Hardik_Patel_12: Remove all @deprecated code from node module

merge-requests/2419/head
Alex Pott 2020-02-10 11:02:07 +00:00
parent c68b4e0808
commit a98801dbc9
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}