public function __construct(Context $context, Filter $filter, CollectionFactory $collectionFactory, array $data = []) { $this->_filter = $filter; $this->_collectionFactory = $collectionFactory; parent::__construct($context); }
public function __construct(Context $context, CollectionFactory $bannerCollectionFactory, JsonFactory $jsonFactory) { parent::__construct($context); $this->jsonFactory = $jsonFactory; $this->bannerCollectionFactory = $bannerCollectionFactory; }