Commit a7a02602 authored by Joël Pittet's avatar Joël Pittet Committed by Adriano Cori
Browse files

Issue #3277266: PrevnextService::__construct() error with webprofiler

parent d3aa8112
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

namespace Drupal\prevnext;

use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface;

@@ -14,9 +14,9 @@ use Drupal\node\NodeInterface;
class PrevnextService implements PrevnextServiceInterface {

  /**
   * The entity manager.
   * The entity type manager.
   *
   * @var Drupal\Core\Entity\EntityTypeManager
   * @var Drupal\Core\Entity\EntityTypeManagerInterface
   */
  protected $entityTypeManager;

@@ -30,10 +30,10 @@ class PrevnextService implements PrevnextServiceInterface {
  /**
   * PrevnextService constructor.
   *
   * @param EntityTypeManager $entityTypeManager
   * @param EntityTypeManagerInterface $entityTypeManager
   *   The entity type manager instance.
   */
  public function __construct(EntityTypeManager $entityTypeManager) {
  public function __construct(EntityTypeManagerInterface $entityTypeManager) {
    $this->entityTypeManager = $entityTypeManager;
  }