Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Ui
DataProvider
Product
AddWebsitesFieldToCollection.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Ui\DataProvider\Product
;
7
8
use
Magento\Framework\Data\Collection
;
9
use
Magento\Ui\DataProvider\AddFieldToCollectionInterface
;
10
17
class
AddWebsitesFieldToCollection
implements
AddFieldToCollectionInterface
18
{
22
public
function
addField
(
Collection
$collection
, $field,
$alias
=
null
)
23
{
25
$collection
->addWebsiteNamesToResult();
26
}
27
}
Magento\Framework\Data\Collection
Definition:
AbstractDb.php:6
Magento\Ui\DataProvider\AddFieldToCollectionInterface
Definition:
AddFieldToCollectionInterface.php:13
Magento\Ui\DataProvider\AddFieldToCollectionInterface\addField
addField(Collection $collection, $field, $alias=null)
Magento\Catalog\Ui\DataProvider\Product\AddWebsitesFieldToCollection
Definition:
AddWebsitesFieldToCollection.php:17
Magento\Framework\Data\Collection
Definition:
Collection.php:19
Magento\Catalog\Ui\DataProvider\Product
$alias
if(!trim($html)) $alias
Definition:
details.phtml:20
$collection
$collection
Definition:
catalog_category_with_apostrophe_rollback.php:17