BreakpointManagerInterface.php 922 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace Drupal\breakpoint;
  3. /**
  4. * Defines an interface for breakpoint managers.
  5. */
  6. interface BreakpointManagerInterface {
  7. /**
  8. * Gets breakpoints for the specified group.
  9. *
  10. * @param string $group
  11. * The breakpoint group to retrieve.
  12. *
  13. * @return \Drupal\breakpoint\BreakpointInterface[]
  14. * Array of breakpoint plugins keyed by machine name.
  15. */
  16. public function getBreakpointsByGroup($group);
  17. /**
  18. * Gets all the existing breakpoint groups.
  19. *
  20. * @return array
  21. * Array of breakpoint group labels. Keyed by group name.
  22. */
  23. public function getGroups();
  24. /**
  25. * Gets all the providers for the specified breakpoint group.
  26. *
  27. * @param string $group
  28. * The breakpoint group to retrieve.
  29. *
  30. * @return array
  31. * An array keyed by provider name with values of provider type (module or
  32. * theme).
  33. */
  34. public function getGroupProviders($group);
  35. }