-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathBundleProduct.php
More file actions
33 lines (27 loc) · 975 Bytes
/
BundleProduct.php
File metadata and controls
33 lines (27 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Copyright © Magefan (support@magefan.com). All rights reserved.
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*/
declare(strict_types=1);
namespace Magefan\Community\Block\Adminhtml\System\Config;
use Magento\Directory\Helper\Data as DirectoryHelper;
use Magento\Framework\Json\Helper\Data as JsonHelper;
class BundleProduct extends \Magento\Backend\Block\Template
{
private $moduleManager;
public function __construct(
\Magento\Backend\Block\Template\Context $context,
\Magefan\Community\Model\ModuleManager $moduleManager,
array $data = [],
?JsonHelper $jsonHelper = null,
?DirectoryHelper $directoryHelper = null)
{
$this->moduleManager = $moduleManager;
parent::__construct($context, $data, $jsonHelper, $directoryHelper);
}
public function getModules()
{
return $this->moduleManager->getAllSections();
}
}