Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Data Class Reference
Inheritance diagram for Data:
AbstractHelper

Public Member Functions

 __construct (\Magento\Framework\App\Helper\Context $context, \Magento\Catalog\Model\ProductTypes\ConfigInterface $config)
 
 getAllowedSelectionTypes ()
 
- Public Member Functions inherited from AbstractHelper
 __construct (Context $context)
 
 isModuleOutputEnabled ($moduleName=null)
 

Protected Attributes

 $config
 
- Protected Attributes inherited from AbstractHelper
 $_moduleName
 
 $_request
 
 $_moduleManager
 
 $_logger
 
 $_urlBuilder
 
 $_httpHeader
 
 $_eventManager
 
 $_remoteAddress
 
 $urlEncoder
 
 $urlDecoder
 
 $scopeConfig
 
 $_cacheConfig
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractHelper
 _getRequest ()
 
 _getModuleName ()
 
 _getUrl ($route, $params=[])
 

Detailed Description

Bundle helper

Author
Magento Core Team core@.nosp@m.mage.nosp@m.ntoco.nosp@m.mmer.nosp@m.ce.co.nosp@m.m

Definition at line 13 of file Data.php.

Constructor & Destructor Documentation

◆ __construct()

Parameters
\Magento\Framework\App\Helper\Context$context
\Magento\Catalog\Model\ProductTypes\ConfigInterface$config

Definition at line 24 of file Data.php.

27  {
28  $this->config = $config;
29  parent::__construct($context);
30  }

Member Function Documentation

◆ getAllowedSelectionTypes()

getAllowedSelectionTypes ( )

Retrieve array of allowed product types for bundle selection product

Returns
array

Definition at line 37 of file Data.php.

38  {
39  $configData = $this->config->getType(\Magento\Catalog\Model\Product\Type::TYPE_BUNDLE);
40 
41  return isset($configData['allowed_selection_types']) ? $configData['allowed_selection_types'] : [];
42  }

Field Documentation

◆ $config

$config
protected

Definition at line 18 of file Data.php.


The documentation for this class was generated from the following file: