Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Plugin.php
Go to the documentation of this file.
1 <?php
7 
11 class Plugin
12 {
16  private $update;
17 
21  public function __construct(
22  \Magento\Widget\Model\ResourceModel\Layout\Update $update
23  ) {
24  $this->update = $update;
25  }
26 
36  public function aroundGetDbUpdateString(
37  \Magento\Framework\View\Model\Layout\Merge $subject,
38  \Closure $proceed,
39  $handle
40  ) {
41  return $this->update->fetchUpdatesByHandle($handle, $subject->getTheme(), $subject->getScope());
42  }
43 }
aroundGetDbUpdateString(\Magento\Framework\View\Model\Layout\Merge $subject, \Closure $proceed, $handle)
Definition: Plugin.php:36
__construct(\Magento\Widget\Model\ResourceModel\Layout\Update $update)
Definition: Plugin.php:21
$handle