PHP 클래스 Smile\ElasticsuiteCatalog\Model\Autocomplete\Product\ItemFactory

저자: Aurelien FOUCRET ([email protected])
상속: extends Magento\Search\Model\Autocomplete\ItemFactory
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Framework\ObjectManagerInterface $objectManager, Magento\Catalog\Helper\Image $imageHelper, Magento\Framework\Pricing\Render $priceRenderer ) Constructor.
create ( array $data ) {@inheritDoc}

비공개 메소드들

메소드 설명
addProductData ( array $data ) : array Load product data and append them to the original data.
getImageUrl ( Magento\Catalog\Api\Data\ProductInterface $product ) : string Get resized image URL.
getPriceRenderer ( ) : boolean | Magento\Framework\View\Element\BlockInterface Retrieve Price Renderer Block
renderProductPrice ( Magento\Catalog\Model\Product $product, string $priceCode ) : string Renders product price.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Framework\ObjectManagerInterface $objectManager, Magento\Catalog\Helper\Image $imageHelper, Magento\Framework\Pricing\Render $priceRenderer )
$objectManager Magento\Framework\ObjectManagerInterface Object manager used to instantiate new item.
$imageHelper Magento\Catalog\Helper\Image Catalog product image helper.
$priceRenderer Magento\Framework\Pricing\Render Catalog product price renderer.

create() 공개 메소드

{@inheritDoc}
public create ( array $data )
$data array