public function FeedTypeInterface::addCustomSource in Feeds 8.3
Adds a custom source that can be used in mapping.
Parameters
string $name: The unique name for the source.
array $source: An array of the source properties:
- label A human readable name.
- value The value to extract from the feed.
- description (optional) A description of the source.
Return value
$this An instance of this class.
1 method overrides FeedTypeInterface::addCustomSource()
- FeedType::addCustomSource in src/
Entity/ FeedType.php - Adds a custom source that can be used in mapping.
File
- src/
FeedTypeInterface.php, line 196
Class
- FeedTypeInterface
- Provides an interface defining a feeds feed type entity.
Namespace
Drupal\feedsCode
public function addCustomSource($name, array $source);