Skip to content

Commit

Permalink
Removed redundant todos.
Browse files Browse the repository at this point in the history
  • Loading branch information
stooit committed Oct 9, 2020
1 parent f9aeb5f commit 2b978d5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/quant_api/src/EventSubscriber/QuantApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,13 @@ public function onOutput(QuantEvent $event) {
}

// Pagination support.
// @todo: Determine when we need to run this.
$document = new \DOMDocument();
@$document->loadHTML($content);
$xpath = new \DOMXPath($document);

/** @var \DOMElement $node */
$pager_operations = [];
// @todo: Make this xpath configurable.
// @todo: Check this xpath works for core taxonomy listing (and elsewhere pagination appears).
// This supports the use case for core views output (mini and standard pager).
foreach ($xpath->query('//a[contains(@href,"page=") and (./span[contains(text(), "Next")])]') as $node) {
$original_href = $node->getAttribute('href');
Expand Down

0 comments on commit 2b978d5

Please sign in to comment.