Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ( $name, $primaryFieldName, $requestFieldName, EavValidationRules $eavValidationRules, CategoryCollectionFactory $categoryCollectionFactory, StoreManagerInterface $storeManager, \Magento\Framework\Registry $registry, Config $eavConfig, \Magento\Framework\App\RequestInterface $request, CategoryFactory $categoryFactory, array $meta=[], array $data=[], PoolInterface $pool=null) | |
getMeta () | |
prepareMeta ($meta) | |
getData () | |
getAttributesMeta (Type $entityType) | |
getCurrentCategory () | |
getScopeLabel (EavAttribute $attribute) | |
getDefaultMetaData ($result) | |
![]() | |
__construct ( $name, $primaryFieldName, $requestFieldName, array $meta=[], array $data=[], PoolInterface $pool=null) | |
getData () | |
![]() | |
__construct ( $name, $primaryFieldName, $requestFieldName, array $meta=[], array $data=[]) | |
getCollection () | |
getName () | |
getPrimaryFieldName () | |
getRequestFieldName () | |
getMeta () | |
getFieldSetMetaInfo ($fieldSetName) | |
getFieldsMetaInfo ($fieldSetName) | |
getFieldMetaInfo ($fieldSetName, $fieldName) | |
addFilter (\Magento\Framework\Api\Filter $filter) | |
getSearchCriteria () | |
getSearchResult () | |
addField ($field, $alias=null) | |
addOrder ($field, $direction) | |
setLimit ($offset, $size) | |
removeField ($field, $isAlias=false) | |
removeAllFields () | |
getData () | |
count () | |
getConfigData () | |
setConfigData ($config) | |
getAllIds () | |
![]() | |
addFilter (\Magento\Framework\Api\Filter $filter) | |
Protected Member Functions | |
addUseConfigSettings ($categoryData) | |
addUseDefaultSettings ($category, $categoryData) | |
filterFields ($categoryData) | |
getFieldsMap () | |
Protected Attributes | |
$requestScopeFieldName = 'store' | |
$loadedData | |
$metaProperties | |
$formElement | |
$elementsWithUseConfigSetting | |
$ignoreFields | |
$eavValidationRules | |
$registry | |
$request | |
![]() | |
$name | |
$primaryFieldName | |
$requestFieldName | |
$meta = [] | |
$data = [] | |
$collection | |
Class DataProvider
@api
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 37 of file DataProvider.php.
__construct | ( | $name, | |
$primaryFieldName, | |||
$requestFieldName, | |||
EavValidationRules | $eavValidationRules, | ||
CategoryCollectionFactory | $categoryCollectionFactory, | ||
StoreManagerInterface | $storeManager, | ||
\Magento\Framework\Registry | $registry, | ||
Config | $eavConfig, | ||
\Magento\Framework\App\RequestInterface | $request, | ||
CategoryFactory | $categoryFactory, | ||
array | $meta = [] , |
||
array | $data = [] , |
||
PoolInterface | $pool = null |
||
) |
DataProvider constructor
string | $name | |
string | $primaryFieldName | |
string | $requestFieldName | |
EavValidationRules | $eavValidationRules | |
CategoryCollectionFactory | $categoryCollectionFactory | |
StoreManagerInterface | $storeManager | |
\Magento\Framework\Registry | $registry | |
Config | $eavConfig | |
\Magento\Framework\App\RequestInterface | $request | |
CategoryFactory | $categoryFactory | |
array | $meta | |
array | $data | |
PoolInterface | null | $pool | @SuppressWarnings(PHPMD.ExcessiveParameterList) |
Definition at line 167 of file DataProvider.php.
|
protected |
Add use config settings
array | $categoryData |
Definition at line 373 of file DataProvider.php.
|
protected |
Add use default settings
\Magento\Catalog\Model\Category | $category | |
array | $categoryData |
Definition at line 398 of file DataProvider.php.
|
protected |
Filter fields
array | $categoryData |
Definition at line 472 of file DataProvider.php.
getAttributesMeta | ( | Type | $entityType | ) |
Get attributes meta
Type | $entityType |
Definition at line 325 of file DataProvider.php.
getCurrentCategory | ( | ) |
Get current category
NoSuchEntityException |
Definition at line 418 of file DataProvider.php.
getData | ( | ) |
Get data
Implements DataProviderInterface.
Definition at line 297 of file DataProvider.php.
getDefaultMetaData | ( | $result | ) |
Category's fields default values
array | $result |
Definition at line 525 of file DataProvider.php.
|
protected |
getMeta | ( | ) |
Implements DataProviderInterface.
Definition at line 198 of file DataProvider.php.
getScopeLabel | ( | EavAttribute | $attribute | ) |
Retrieve label of attribute scope
GLOBAL | WEBSITE | STORE
EavAttribute | $attribute |
Definition at line 446 of file DataProvider.php.
prepareMeta | ( | $meta | ) |
Prepare meta data
array | $meta |
Definition at line 261 of file DataProvider.php.
|
protected |
Definition at line 105 of file DataProvider.php.
|
protected |
Definition at line 84 of file DataProvider.php.
|
protected |
Definition at line 73 of file DataProvider.php.
|
protected |
Definition at line 96 of file DataProvider.php.
|
protected |
Definition at line 49 of file DataProvider.php.
|
protected |
Definition at line 56 of file DataProvider.php.
|
protected |
Definition at line 111 of file DataProvider.php.
|
protected |
Definition at line 117 of file DataProvider.php.
|
protected |
Definition at line 43 of file DataProvider.php.