Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / node / src / NodeListBuilder.php
index 4dbdf27bf21359f9713c79b337939cd43a9f34e7..eac48fda31aa17cad0b3aa7dea8ef86032580b0b 100644 (file)
@@ -25,13 +25,6 @@ class NodeListBuilder extends EntityListBuilder {
    */
   protected $dateFormatter;
 
-  /**
-   * The redirect destination service.
-   *
-   * @var \Drupal\Core\Routing\RedirectDestinationInterface
-   */
-  protected $redirectDestination;
-
   /**
    * Constructs a new NodeListBuilder object.
    *
@@ -128,17 +121,4 @@ class NodeListBuilder extends EntityListBuilder {
     return $row + parent::buildRow($entity);
   }
 
-  /**
-   * {@inheritdoc}
-   */
-  protected function getDefaultOperations(EntityInterface $entity) {
-    $operations = parent::getDefaultOperations($entity);
-
-    $destination = $this->redirectDestination->getAsArray();
-    foreach ($operations as $key => $operation) {
-      $operations[$key]['query'] = $destination;
-    }
-    return $operations;
-  }
-
 }