LayoutArgumentSimpleUpdater.php 493 B

123456789101112131415161718192021222324
  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 LayoutArgumentSimpleUpdater implements \Magento\Framework\View\Layout\Argument\UpdaterInterface
  11. {
  12. /**
  13. * Update specified argument
  14. *
  15. * @param int $argument
  16. * @return int
  17. */
  18. public function update($argument)
  19. {
  20. $argument++;
  21. return $argument;
  22. }
  23. }