public function getWidgetItem(array $item) {
        $entity = new ItemWidget();

        $entity->setName($this->getItemName($item));
        $entity->setLink($this->browser->getHost().$item['url']);
        $entity->setCover($this->browser->getHost().$item['image']['original']);

        $catalog_item = $this->getCatalogItem($item);
        if ($catalog_item instanceof Item) {
            $entity->setItem($catalog_item);
        } elseif ($this->filler instanceof Filler) {
            $entity->setLinkForFill($this->filler->getLinkForFill($entity->getLink()));
        }

        return $entity;
    }
public function getWidgetItem(array $item) {
        $entity = new ItemWidget();

        $entity->setName($this->getItemName($item));
        $entity->setLink($this->browser->getHost().$item['url']);
        $entity->setCover($this->browser->getHost().$item['image']['original']);

        $catalog_item = $this->getCatalogItem($item);
        if ($catalog_item instanceof Item) {
            $entity->setItem($catalog_item);
        } elseif ($this->filler instanceof Filler) {
            $entity->setLinkForFill($this->filler->getLinkForFill($entity->getLink()));
        }

        return $entity;
    }
public function getWidgetItem ( array $ item ) { $ entity = new ItemWidget ( ) ; $ entity -> setName ( $ this -> getItemName ( $ item ) ) ; $ entity -> setLink ( $ this -> browser -> getHost ( ) . $ item [ 'url' ] ) ; $ entity -> setCover ( $ this -> browser -> getHost ( ) . $ item [ 'image' ] [ 'original' ] ) ; $ catalog_item = $ this -> getCatalogItem ( $ item ) ; if ( $ catalog_item instanceof Item ) { $ entity -> setItem ( $ catalog_item ) ; } elseif ( $ this -> filler instanceof Filler ) { $ entity -> setLinkForFill ( $ this -> filler -> getLinkForFill ( $ entity -> getLink ( ) ) ) ; } return $ entity ; }
Get widget item

@param array $item

@return \AnimeDb\Bundle\CatalogBundle\Entity\Widget\Item
Get widget item