Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CollectionUpdater.php
Go to the documentation of this file.
1 <?php
8 
9 class CollectionUpdater implements \Magento\Framework\View\Layout\Argument\UpdaterInterface
10 {
14  protected $registryManager;
15 
19  public function __construct(
20  \Magento\Framework\Registry $registryManager
21  ) {
22  $this->registryManager = $registryManager;
23  }
24 
31  public function update($argument)
32  {
33  $argument->addParentIdFilter($this->registryManager->registry('current_transaction')->getId());
34  return $argument;
35  }
36 }
__construct(\Magento\Framework\Registry $registryManager)