Layout.php 585 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestFramework\View;
  7. class Layout extends \Magento\Framework\View\Layout
  8. {
  9. /**
  10. * @var bool
  11. */
  12. protected $isCacheable = true;
  13. /**
  14. * @return bool
  15. */
  16. public function isCacheable()
  17. {
  18. return $this->isCacheable && parent::isCacheable();
  19. }
  20. /**
  21. * @param bool $isCacheable
  22. * @return void
  23. */
  24. public function setIsCacheable($isCacheable)
  25. {
  26. $this->isCacheable = $isCacheable;
  27. }
  28. }