AttributeOptionProviderInterface.php 612 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\ConfigurableProduct\Model;
  7. /**
  8. * Interface to retrieve options for attribute
  9. * @api
  10. * @since 100.1.11
  11. */
  12. interface AttributeOptionProviderInterface
  13. {
  14. /**
  15. * Retrieve options for attribute
  16. *
  17. * @param \Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute
  18. * @param int $productId
  19. * @return array
  20. * @since 100.1.11
  21. */
  22. public function getAttributeOptions(\Magento\Eav\Model\Entity\Attribute\AbstractAttribute $attribute, $productId);
  23. }