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
Component
Listing
Attribute
AbstractRepository.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Ui\Component\Listing\Attribute
;
7
12
abstract
class
AbstractRepository
implements
RepositoryInterface
13
{
17
protected
$attributes
;
18
22
protected
$searchCriteriaBuilder
;
23
28
public
function
__construct
(
29
\
Magento
\Catalog\Api\ProductAttributeRepositoryInterface
$productAttributeRepository
,
30
\
Magento
\Framework\Api\SearchCriteriaBuilder
$searchCriteriaBuilder
31
) {
32
$this->productAttributeRepository =
$productAttributeRepository
;
33
$this->searchCriteriaBuilder =
$searchCriteriaBuilder
;
34
}
35
39
abstract
protected
function
buildSearchCriteria
();
40
44
public
function
getList
()
45
{
46
if
(
null
== $this->attributes) {
47
$this->attributes = $this->productAttributeRepository
48
->getList($this->
buildSearchCriteria
())
49
->getItems();
50
}
51
return
$this->attributes
;
52
}
53
}
Magento\Catalog\Ui\Component\Listing\Attribute\RepositoryInterface
Definition:
RepositoryInterface.php:12
Magento\Catalog\Ui\Component\Listing\Attribute\AbstractRepository\getList
getList()
Definition:
AbstractRepository.php:44
Magento\Catalog\Ui\Component\Listing\Attribute\AbstractRepository\$searchCriteriaBuilder
$searchCriteriaBuilder
Definition:
AbstractRepository.php:22
Magento\Catalog\Ui\Component\Listing\Attribute\AbstractRepository\$attributes
$attributes
Definition:
AbstractRepository.php:17
Magento\Catalog\Ui\Component\Listing\Attribute\AbstractRepository\__construct
__construct(\Magento\Catalog\Api\ProductAttributeRepositoryInterface $productAttributeRepository, \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder)
Definition:
AbstractRepository.php:28
Magento\Catalog\Ui\Component\Listing\Attribute\AbstractRepository
Definition:
AbstractRepository.php:12
Magento
$productAttributeRepository
$productAttributeRepository
Definition:
search_weight_products.php:69
Magento\Catalog\Ui\Component\Listing\Attribute
Definition:
AbstractRepository.php:6
Magento\Catalog\Ui\Component\Listing\Attribute\AbstractRepository\buildSearchCriteria
buildSearchCriteria()