You are here

public function DynamicItem::get in Feeds 8.3

Returns the value for a target field.

Parameters

string $field: The name of the field.

Return value

mixed|null The value that corresponds to this field, or null if it does not exist.

Overrides ItemInterface::get

File

src/Feeds/Item/DynamicItem.php, line 22

Class

DynamicItem
Defines an item class for when a parser has a dynamic set of fields.

Namespace

Drupal\feeds\Feeds\Item

Code

public function get($field) {
  return isset($this->data[$field]) ? $this->data[$field] : NULL;
}