FieldEntityAttributesInterface.php 499 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Framework\GraphQl\Query\Resolver\Argument;
  8. /**
  9. * Contract for the classes that retrieve attributes for a given entity configured in @see FieldEntityAttributesPool.
  10. */
  11. interface FieldEntityAttributesInterface
  12. {
  13. /**
  14. * Get the attributes for an entity
  15. *
  16. * @return array
  17. */
  18. public function getEntityAttributes() : array;
  19. }