コード例 #1
0
ファイル: Image.php プロジェクト: pavelnovitsky/magento2
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Framework\StoreManagerInterface $storeManager, $data = array())
 {
     $this->_storeManager = $storeManager;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $urlBuilder, $data);
 }
コード例 #2
0
ファイル: Image.php プロジェクト: pleminh/Gemtoo
 /**
  * @param ArticleImage $imageModel
  * @param ElementFactory $factoryElement
  * @param ElementCollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param UrlInterface $urlBuilder
  * @param array $data
  */
 public function __construct(ArticleImage $imageModel, ElementFactory $factoryElement, ElementCollectionFactory $factoryCollection, Escaper $escaper, UrlInterface $urlBuilder, $data = [])
 {
     $this->imageModel = $imageModel;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $urlBuilder, $data);
 }
コード例 #3
0
 /**
  * constructor
  *
  * @param \Mageplaza\Blog\Model\Post\Image $imageModel
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Framework\UrlInterface $urlBuilder
  * @param array $data
  */
 public function __construct(\Mageplaza\Blog\Model\Post\Image $imageModel, \Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Framework\UrlInterface $urlBuilder, array $data)
 {
     $this->imageModel = $imageModel;
     parent::__construct($factoryElement, $factoryCollection, $escaper, $urlBuilder, $data);
 }