public function refillFromSearchResult(Item $item, $field, array $data)
    {
        if (!empty($data['url'])) {
            $item->addSource((new Source())->setUrl($data['url']));
            $item = $this->refill($item, $field);
        }

        return $item;
    }
public function refillFromSearchResult(Item $item, $field, array $data)
    {
        if (!empty($data['url'])) {
            $item->addSource((new Source())->setUrl($data['url']));
            $item = $this->refill($item, $field);
        }

        return $item;
    }
public function refillFromSearchResult ( Item $ item , $ field , array $ data ) { if ( ! empty ( $ data [ 'url' ] ) ) { $ item -> addSource ( ( new Source ( ) ) -> setUrl ( $ data [ 'url' ] ) ) ; $ item = $ this -> refill ( $ item , $ field ) ; } return $ item ; }
Refill item field from search result.

@param Item $item
@param string $field
@param array $data

@return Item
Refill item field from search result .