public function Feed::pushImport in Feeds 8.3
Imports a raw string.
This does not batch. It assumes that the input is small enough to not need it.
@todo We need to create a job for this that will run immediately so that services don't have to wait for us to process. Can we spawn a background process?
Parameters
string $raw: (optional) A raw string to import.
Throws
\Exception Re-throws any exception that bubbles up.
Overrides FeedInterface::pushImport
File
- src/
Entity/ Feed.php, line 281
Class
- Feed
- Defines the feed entity class.
Namespace
Drupal\feeds\EntityCode
public function pushImport($raw) {
return $this
->entityTypeManager()
->getHandler('feeds_feed', 'feed_import')
->pushImport($this, $raw);
}