protected function FeedCreationTrait::reloadFeed in Feeds 8.3
Reloads a feed entity.
Parameters
\Drupal\feeds\FeedInterface $feed: The feed entity to reload.
Return value
\Drupal\feeds\FeedInterface The reloaded feed.
10 calls to FeedCreationTrait::reloadFeed()
- ExpireTest::testExpireItemsWithBatch in tests/
src/ Functional/ ExpireTest.php - Tests expiring items when doing an import in the UI.
- ExpireTest::testExpireItemsWithCron in tests/
src/ Functional/ ExpireTest.php - Tests expiring items using cron.
- FeedTest::testGetImportedTime in tests/
src/ Kernel/ Entity/ FeedTest.php - @covers ::getImportedTime @covers ::getNextImportTime
- UpdateExistingTest::testUpdateUnpublishedNodeWithNodeAccess in tests/
src/ Functional/ UpdateExistingTest.php - Tests updating a node that is unpublished.
- UpdateNonExistentTest::testDeleteNonExistentItemsWithBatch in tests/
src/ Functional/ UpdateNonExistentTest.php - Tests 'Delete non-existent' option using a Batch.
File
- tests/
src/ Traits/ FeedCreationTrait.php, line 160
Class
- FeedCreationTrait
- Provides methods to create feeds and feed types with default settings.
Namespace
Drupal\Tests\feeds\TraitsCode
protected function reloadFeed(FeedInterface $feed) {
/** @var \Drupal\feeds\FeedStorageInterface $storage */
$storage = $this->container
->get('entity_type.manager')
->getStorage('feeds_feed');
return $storage
->load($feed
->id());
}