MetadataManagementInterface.php 985 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Api;
  7. use Magento\Customer\Api\Data\AttributeMetadataInterface;
  8. /**
  9. * Interface for managing attributes metadata.
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface MetadataManagementInterface
  14. {
  15. /**
  16. * Check whether attribute is searchable in admin grid and it is allowed
  17. *
  18. * @api
  19. * @param AttributeMetadataInterface $attribute
  20. * @return bool
  21. * @throws \Magento\Framework\Exception\NoSuchEntityException
  22. */
  23. public function canBeSearchableInGrid(AttributeMetadataInterface $attribute);
  24. /**
  25. * Check whether attribute is filterable in admin grid and it is allowed
  26. *
  27. * @api
  28. * @param AttributeMetadataInterface $attribute
  29. * @return bool
  30. * @throws \Magento\Framework\Exception\NoSuchEntityException
  31. */
  32. public function canBeFilterableInGrid(AttributeMetadataInterface $attribute);
  33. }