public function BaseItem::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/ BaseItem.php, line 13
Class
- BaseItem
- Defines a base item class.
Namespace
Drupal\feeds\Feeds\ItemCode
public function get($field) {
return isset($this->{$field}) ? $this->{$field} : NULL;
}