You are here

public function SourceInterface::getSourceElement in Feeds 8.3

Returns the value for a source.

Parameters

\Drupal\feeds\FeedInterface $feed: The feed being processed.

\Drupal\feeds\Feeds\Item\ItemInterface $item: The item that is processed.

Return value

array A list of scalar field values.

2 methods override SourceInterface::getSourceElement()
BasicFieldSource::getSourceElement in src/Feeds/Source/BasicFieldSource.php
@todo I guess we could cache this since the value will be the same for source/feed id combo.
SiteSource::getSourceElement in tests/modules/feeds_test_extra_sources/src/Feeds/Source/SiteSource.php
Returns the value for a source.

File

src/Plugin/Type/Source/SourceInterface.php, line 38

Class

SourceInterface
Interface for Feed sources.

Namespace

Drupal\feeds\Plugin\Type\Source

Code

public function getSourceElement(FeedInterface $feed, ItemInterface $item);