interface SourceInterface in Feeds 8.3
Interface for Feed sources.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface
- interface \Drupal\feeds\Plugin\Type\FeedsPluginInterface
- interface \Drupal\feeds\Plugin\Type\Source\SourceInterface
- interface \Drupal\feeds\Plugin\Type\FeedsPluginInterface
Expanded class hierarchy of SourceInterface
All classes that implement SourceInterface
File
- src/
Plugin/ Type/ Source/ SourceInterface.php, line 13
Namespace
Drupal\feeds\Plugin\Type\SourceView source
interface SourceInterface extends FeedsPluginInterface {
/**
* Adds sources to the $source array for this field.
*
* @param array $sources
* The list of sources to modify.
* @param \Drupal\feeds\FeedTypeInterface $feed_type
* The feed type being added to.
* @param array $definition
* The plugin definition.
*/
public static function sources(array &$sources, FeedTypeInterface $feed_type, array $definition);
/**
* Returns the value for a source.
*
* @param \Drupal\feeds\FeedInterface $feed
* The feed being processed.
* @param \Drupal\feeds\Feeds\Item\ItemInterface $item
* The item that is processed.
*
* @return array
* A list of scalar field values.
*/
public function getSourceElement(FeedInterface $feed, ItemInterface $item);
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
FeedsPluginInterface:: |
public | function | Returns default feed configuration. | 1 |
FeedsPluginInterface:: |
public | function | Returns the type of plugin. | 1 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
SourceInterface:: |
public | function | Returns the value for a source. | 2 |
SourceInterface:: |
public static | function | Adds sources to the $source array for this field. | 2 |