Breakpoint.php 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. namespace Drupal\breakpoint;
  3. use Drupal\Core\Plugin\PluginBase;
  4. /**
  5. * Default object used for breakpoint plugins.
  6. *
  7. * @see \Drupal\breakpoint\BreakpointManager
  8. * @see plugin_api
  9. */
  10. class Breakpoint extends PluginBase implements BreakpointInterface {
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public function getLabel() {
  15. return $this->t($this->pluginDefinition['label'], [], ['context' => 'breakpoint']);
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function getWeight() {
  21. return (int) $this->pluginDefinition['weight'];
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function getMediaQuery() {
  27. return $this->pluginDefinition['mediaQuery'];
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function getMultipliers() {
  33. return $this->pluginDefinition['multipliers'];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function getProvider() {
  39. return $this->pluginDefinition['provider'];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function getGroup() {
  45. return $this->pluginDefinition['group'];
  46. }
  47. }