LayoutArgumentObjectUpdater.php 658 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\View;
  7. /**
  8. * Dummy layout argument updater model
  9. */
  10. class LayoutArgumentObjectUpdater implements \Magento\Framework\View\Layout\Argument\UpdaterInterface
  11. {
  12. /**
  13. * Update specified argument
  14. *
  15. * @param \Magento\Framework\Data\Collection $argument
  16. * @return \Magento\Framework\Data\Collection
  17. */
  18. public function update($argument)
  19. {
  20. $calls = $argument->getUpdaterCall();
  21. $calls[] = 'updater call';
  22. $argument->setUpdaterCall($calls);
  23. return $argument;
  24. }
  25. }