Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Bundle\Helper;
7 
14 {
18  protected $config;
19 
24  public function __construct(
25  \Magento\Framework\App\Helper\Context $context,
26  \Magento\Catalog\Model\ProductTypes\ConfigInterface $config
27  ) {
28  $this->config = $config;
29  parent::__construct($context);
30  }
31 
37  public function getAllowedSelectionTypes()
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  }
43 }
__construct(\Magento\Framework\App\Helper\Context $context, \Magento\Catalog\Model\ProductTypes\ConfigInterface $config)
Definition: Data.php:24