DesignConfigRepositoryInterface.php 976 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Theme\Api;
  7. use Magento\Theme\Api\Data\DesignConfigInterface;
  8. /**
  9. * Design config CRUD interface.
  10. * @api
  11. * @since 100.1.0
  12. */
  13. interface DesignConfigRepositoryInterface
  14. {
  15. /**
  16. * Get design settings by scope
  17. *
  18. * @param string $scope
  19. * @param mixed $scopeId
  20. * @return DesignConfigInterface
  21. * @since 100.1.0
  22. */
  23. public function getByScope($scope, $scopeId);
  24. /**
  25. * Save design settings
  26. *
  27. * @param DesignConfigInterface $designConfig
  28. * @return DesignConfigInterface
  29. * @since 100.1.0
  30. */
  31. public function save(DesignConfigInterface $designConfig);
  32. /**
  33. * Delete design settings
  34. *
  35. * @param DesignConfigInterface $designConfig
  36. * @return DesignConfigInterface
  37. * @since 100.1.0
  38. */
  39. public function delete(DesignConfigInterface $designConfig);
  40. }