Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ConfigPlugin.php
Go to the documentation of this file.
1 <?php
7 
9 
11 {
15  protected $configProvider;
16 
20  public function __construct(
22  ) {
23  $this->configProvider = $configProvider;
24  }
25 
33  public function afterGetConfig(\Magento\Checkout\Block\Cart\Sidebar $subject, array $result)
34  {
35  return array_merge_recursive($result, $this->configProvider->getConfig());
36  }
37 }
__construct(ConfigProvider $configProvider)
afterGetConfig(\Magento\Checkout\Block\Cart\Sidebar $subject, array $result)