123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace Drupal\breakpoint;
- use Drupal\Core\Plugin\PluginBase;
- /**
- * Default object used for breakpoint plugins.
- *
- * @see \Drupal\breakpoint\BreakpointManager
- * @see plugin_api
- */
- class Breakpoint extends PluginBase implements BreakpointInterface {
- /**
- * {@inheritdoc}
- */
- public function getLabel() {
- return $this->t($this->pluginDefinition['label'], [], ['context' => 'breakpoint']);
- }
- /**
- * {@inheritdoc}
- */
- public function getWeight() {
- return (int) $this->pluginDefinition['weight'];
- }
- /**
- * {@inheritdoc}
- */
- public function getMediaQuery() {
- return $this->pluginDefinition['mediaQuery'];
- }
- /**
- * {@inheritdoc}
- */
- public function getMultipliers() {
- return $this->pluginDefinition['multipliers'];
- }
- /**
- * {@inheritdoc}
- */
- public function getProvider() {
- return $this->pluginDefinition['provider'];
- }
- /**
- * {@inheritdoc}
- */
- public function getGroup() {
- return $this->pluginDefinition['group'];
- }
- }
|