GetPageByIdentifierInterface.php 638 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Cms\Api;
  7. /**
  8. * Command to load the page data by specified identifier
  9. * @api
  10. * @since 103.0.0
  11. */
  12. interface GetPageByIdentifierInterface
  13. {
  14. /**
  15. * Load page data by given page identifier.
  16. *
  17. * @param string $identifier
  18. * @param int $storeId
  19. * @throws \Magento\Framework\Exception\NoSuchEntityException
  20. * @return \Magento\Cms\Api\Data\PageInterface
  21. * @since 103.0.0
  22. */
  23. public function execute(string $identifier, int $storeId) : \Magento\Cms\Api\Data\PageInterface;
  24. }