示例#1
0
 /**
  * {@inheritdoc}
  *
  * @todo I guess we could cache this since the value will be the same for
  *   $element_key/$feed id combo.
  */
 public function getSourceElement(FeedInterface $feed, array $item, $element_key)
 {
     list(, $field) = explode(':', $element_key);
     $return = array();
     if ($field_list = $feed->get($field)) {
         foreach ($field_list as $field) {
             $return[] = $field->value;
         }
     }
     return $return;
 }