public function DynamicItem::fromArray in Feeds 8.3
Loads data in from an array.
Parameters
array $data: The data to load in.
Return value
$this An instance of this class.
Overrides ItemInterface::fromArray
File
- src/
Feeds/ Item/ DynamicItem.php, line 44
Class
- DynamicItem
- Defines an item class for when a parser has a dynamic set of fields.
Namespace
Drupal\feeds\Feeds\ItemCode
public function fromArray(array $data) {
foreach ($data as $field => $value) {
$this
->set($field, $value);
}
return $this;
}