StubBlock.php 519 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\PageCache\Test\Unit\Block\Controller;
  7. use Magento\Framework\DataObject\IdentityInterface;
  8. use Magento\Framework\View\Element\AbstractBlock;
  9. class StubBlock extends AbstractBlock implements IdentityInterface
  10. {
  11. /**
  12. * Return identifiers for produced content
  13. *
  14. * @return array
  15. */
  16. public function getIdentities()
  17. {
  18. return ['identity1', 'identity2'];
  19. }
  20. }