protected function DisplayJsonFeedTest::getFeedNextPage in JSON Feed 8
Retrieve subsequent page of feed items.
Parameters
array $feed_content: An array of JSON feed attributes/items.
Return value
array An array of JSON feed attributes/items.
1 call to DisplayJsonFeedTest::getFeedNextPage()
- DisplayJsonFeedTest::getFeedLastPage in tests/
src/ Functional/ DisplayJsonFeedTest.php - Retrieve last page of feed items.
File
- tests/
src/ Functional/ DisplayJsonFeedTest.php, line 208
Class
- DisplayJsonFeedTest
- Tests the json_feed display plugin.
Namespace
Drupal\Tests\json_feed\FunctionalCode
protected function getFeedNextPage(array $feed_content) {
if (empty($feed_content['next_url'])) {
return NULL;
}
return Json::decode($this
->drupalGet($feed_content['next_url'], [
'query' => [
'_format' => 'json',
],
]));
}