Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | SCOPE_STORE = 0 |
const | SCOPE_GLOBAL = 1 |
const | SCOPE_WEBSITE = 2 |
const | KEY_IS_GLOBAL = 'is_global' |
![]() | |
const | MODULE_NAME = 'Magento_Catalog' |
![]() | |
const | ATTRIBUTE_CODE_MAX_LENGTH = 60 |
const | ATTRIBUTE_CODE_MIN_LENGTH = 1 |
const | CACHE_TAG = 'EAV_ATTRIBUTE' |
![]() | |
const | TYPE_STATIC = 'static' |
const | EMPTY_STRING = '' |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
![]() | |
const | ATTRIBUTE_ID = 'attribute_id' |
const | IS_UNIQUE = 'is_unique' |
const | SCOPE = 'scope' |
const | FRONTEND_CLASS = 'frontend_class' |
const | ATTRIBUTE_CODE = 'attribute_code' |
const | FRONTEND_INPUT = 'frontend_input' |
const | IS_REQUIRED = 'is_required' |
const | OPTIONS = 'options' |
const | IS_USER_DEFINED = 'is_user_defined' |
const | FRONTEND_LABEL = 'frontend_label' |
const | FRONTEND_LABELS = 'frontend_labels' |
const | NOTE = 'note' |
const | BACKEND_TYPE = 'backend_type' |
const | BACKEND_MODEL = 'backend_model' |
const | SOURCE_MODEL = 'source_model' |
const | VALIDATE_RULES = 'validate_rules' |
const | ENTITY_TYPE_ID = 'entity_type_id' |
![]() | |
const | ENTITY_TYPE_CODE = 'catalog_category' |
![]() | |
const | IS_WYSIWYG_ENABLED = 'is_wysiwyg_enabled' |
const | IS_HTML_ALLOWED_ON_FRONT = 'is_html_allowed_on_front' |
const | USED_FOR_SORT_BY = 'used_for_sort_by' |
const | IS_FILTERABLE = 'is_filterable' |
const | IS_FILTERABLE_IN_SEARCH = 'is_filterable_in_search' |
const | IS_USED_IN_GRID = 'is_used_in_grid' |
const | IS_VISIBLE_IN_GRID = 'is_visible_in_grid' |
const | IS_FILTERABLE_IN_GRID = 'is_filterable_in_grid' |
const | POSITION = 'position' |
const | APPLY_TO = 'apply_to' |
const | IS_SEARCHABLE = 'is_searchable' |
const | IS_VISIBLE_IN_ADVANCED_SEARCH = 'is_visible_in_advanced_search' |
const | IS_COMPARABLE = 'is_comparable' |
const | IS_USED_FOR_PROMO_RULES = 'is_used_for_promo_rules' |
const | IS_VISIBLE_ON_FRONT = 'is_visible_on_front' |
const | USED_IN_PRODUCT_LISTING = 'used_in_product_listing' |
const | IS_VISIBLE = 'is_visible' |
const | SCOPE_STORE_TEXT = 'store' |
const | SCOPE_GLOBAL_TEXT = 'global' |
const | SCOPE_WEBSITE_TEXT = 'website' |
Class Attribute
@method \Magento\Eav\Api\Data\AttributeExtensionInterface getExtensionAttributes()
Definition at line 13 of file Attribute.php.
getApplyTo | ( | ) |
Retrieve apply to products array Return empty array if applied to all products
Implements EavAttributeInterface.
Definition at line 30 of file Attribute.php.
getIsComparable | ( | ) |
{Whether the attribute can be compared on the frontend
Implements EavAttributeInterface.
Definition at line 237 of file Attribute.php.
getIsFilterable | ( | ) |
{Whether it used in layered navigation
Implements EavAttributeInterface.
Definition at line 118 of file Attribute.php.
getIsFilterableInGrid | ( | ) |
{Whether it is filterable in catalog product grid
Implements EavAttributeInterface.
Definition at line 161 of file Attribute.php.
getIsFilterableInSearch | ( | ) |
{Whether it is used in search results layered navigation
Implements EavAttributeInterface.
Definition at line 137 of file Attribute.php.
getIsHtmlAllowedOnFront | ( | ) |
{Whether the HTML tags are allowed on the frontend
Implements EavAttributeInterface.
Definition at line 80 of file Attribute.php.
getIsSearchable | ( | ) |
{Whether the attribute can be used in Quick Search
Implements EavAttributeInterface.
Definition at line 199 of file Attribute.php.
getIsUsedForPromoRules | ( | ) |
{Whether the attribute can be used for promo rules
Implements EavAttributeInterface.
Definition at line 256 of file Attribute.php.
getIsUsedInGrid | ( | ) |
{Whether it is used in catalog product grid
Implements EavAttributeInterface.
Definition at line 145 of file Attribute.php.
getIsVisible | ( | ) |
{Whether attribute is visible on frontend.
Implements EavAttributeInterface.
Definition at line 313 of file Attribute.php.
getIsVisibleInAdvancedSearch | ( | ) |
{Whether the attribute can be used in Advanced Search
Implements EavAttributeInterface.
Definition at line 218 of file Attribute.php.
getIsVisibleInGrid | ( | ) |
{Whether it is visible in catalog product grid
Implements EavAttributeInterface.
Definition at line 153 of file Attribute.php.
getIsVisibleOnFront | ( | ) |
{Whether the attribute is visible on the frontend
Implements EavAttributeInterface.
Definition at line 275 of file Attribute.php.
getIsWysiwygEnabled | ( | ) |
@codeCoverageIgnoreStart {Enable WYSIWYG flag
Implements EavAttributeInterface.
Definition at line 61 of file Attribute.php.
getPosition | ( | ) |
{Get position
Implements EavAttributeInterface.
Definition at line 180 of file Attribute.php.
getScope | ( | ) |
{Retrieve attribute scope
Implements EavAttributeInterface.
Definition at line 334 of file Attribute.php.
getUsedForSortBy | ( | ) |
{Whether it is used for sorting in product listing
Implements EavAttributeInterface.
Definition at line 99 of file Attribute.php.
getUsedInProductListing | ( | ) |
{Whether the attribute can be used in product listing
Implements EavAttributeInterface.
Definition at line 294 of file Attribute.php.
setApplyTo | ( | $applyTo | ) |
Set apply to value for the element
string | []|string |
Implements EavAttributeInterface.
Definition at line 49 of file Attribute.php.
setIsComparable | ( | $isComparable | ) |
Set whether the attribute can be compared on the frontend
string | $isComparable |
Implements EavAttributeInterface.
Definition at line 248 of file Attribute.php.
setIsFilterable | ( | $isFilterable | ) |
Set whether it used in layered navigation
bool | $isFilterable |
Implements EavAttributeInterface.
Definition at line 129 of file Attribute.php.
setIsFilterableInGrid | ( | $isFilterableInGrid | ) |
Set is attribute filterable in grid
bool | null | $isFilterableInGrid |
Implements EavAttributeInterface.
Definition at line 387 of file Attribute.php.
setIsFilterableInSearch | ( | $isFilterableInSearch | ) |
Set whether it is used in search results layered navigation
bool | $isFilterableInSearch |
Implements EavAttributeInterface.
Definition at line 172 of file Attribute.php.
setIsHtmlAllowedOnFront | ( | $isHtmlAllowedOnFront | ) |
Set whether the HTML tags are allowed on the frontend
bool | $isHtmlAllowedOnFront |
Implements EavAttributeInterface.
Definition at line 91 of file Attribute.php.
setIsSearchable | ( | $isSearchable | ) |
Whether the attribute can be used in Quick Search
string | $isSearchable |
Implements EavAttributeInterface.
Definition at line 210 of file Attribute.php.
setIsUsedForPromoRules | ( | $isUsedForPromoRules | ) |
Set whether the attribute can be used for promo rules
string | $isUsedForPromoRules |
Implements EavAttributeInterface.
Definition at line 267 of file Attribute.php.
setIsUsedInGrid | ( | $isUsedInGrid | ) |
Set is attribute used in grid
bool | null | $isUsedInGrid |
Implements EavAttributeInterface.
Definition at line 369 of file Attribute.php.
setIsVisible | ( | $isVisible | ) |
Set whether attribute is visible on frontend.
bool | $isVisible |
Implements EavAttributeInterface.
Definition at line 324 of file Attribute.php.
setIsVisibleInAdvancedSearch | ( | $isVisibleInAdvancedSearch | ) |
Set whether the attribute can be used in Advanced Search
string | $isVisibleInAdvancedSearch |
Implements EavAttributeInterface.
Definition at line 229 of file Attribute.php.
setIsVisibleInGrid | ( | $isVisibleInGrid | ) |
Set is attribute visible in grid
bool | null | $isVisibleInGrid |
Implements EavAttributeInterface.
Definition at line 378 of file Attribute.php.
setIsVisibleOnFront | ( | $isVisibleOnFront | ) |
Set whether the attribute is visible on the frontend
string | $isVisibleOnFront |
Implements EavAttributeInterface.
Definition at line 286 of file Attribute.php.
setIsWysiwygEnabled | ( | $isWysiwygEnabled | ) |
Set whether WYSIWYG is enabled flag
bool | $isWysiwygEnabled |
Implements EavAttributeInterface.
Definition at line 72 of file Attribute.php.
setPosition | ( | $position | ) |
Set position
int | $position |
Implements EavAttributeInterface.
Definition at line 191 of file Attribute.php.
setScope | ( | $scope | ) |
Set attribute scope
string | $scope |
Implements EavAttributeInterface.
Definition at line 352 of file Attribute.php.
setUsedForSortBy | ( | $usedForSortBy | ) |
Set whether it is used for sorting in product listing
bool | $usedForSortBy |
Implements EavAttributeInterface.
Definition at line 110 of file Attribute.php.
setUsedInProductListing | ( | $usedInProductListing | ) |
Set whether the attribute can be used in product listing
string | $usedInProductListing |
Implements EavAttributeInterface.
Definition at line 305 of file Attribute.php.
const KEY_IS_GLOBAL = 'is_global' |
Definition at line 22 of file Attribute.php.
const SCOPE_GLOBAL = 1 |
Definition at line 18 of file Attribute.php.
const SCOPE_STORE = 0 |
Definition at line 16 of file Attribute.php.
const SCOPE_WEBSITE = 2 |
Definition at line 20 of file Attribute.php.