1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * High-level interface for catalog attributes data that hides format from the client code
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Catalog\Model\Attribute;
- class Config
- {
- /**
- * @var \Magento\Catalog\Model\Attribute\Config\Data
- */
- protected $_dataStorage;
- /**
- * @param \Magento\Catalog\Model\Attribute\Config\Data $dataStorage
- */
- public function __construct(\Magento\Catalog\Model\Attribute\Config\Data $dataStorage)
- {
- $this->_dataStorage = $dataStorage;
- }
- /**
- * Retrieve names of attributes belonging to specified group
- *
- * @param string $groupName Name of an attribute group
- * @return array
- */
- public function getAttributeNames($groupName)
- {
- return $this->_dataStorage->get($groupName, []);
- }
- }
|