You are here

interface SourceInterface in Feeds 8.3

Interface for Feed sources.

Hierarchy

Expanded class hierarchy of SourceInterface

All classes that implement SourceInterface

File

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

Namespace

Drupal\feeds\Plugin\Type\Source
View 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

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19
FeedsPluginInterface::defaultFeedConfiguration public function Returns default feed configuration. 1
FeedsPluginInterface::pluginType public function Returns the type of plugin. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
SourceInterface::getSourceElement public function Returns the value for a source. 2
SourceInterface::sources public static function Adds sources to the $source array for this field. 2