summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint/src/Breakpoint.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/breakpoint/src/Breakpoint.php')
-rw-r--r--core/modules/breakpoint/src/Breakpoint.php62
1 files changed, 62 insertions, 0 deletions
diff --git a/core/modules/breakpoint/src/Breakpoint.php b/core/modules/breakpoint/src/Breakpoint.php
new file mode 100644
index 0000000..e75edc1
--- /dev/null
+++ b/core/modules/breakpoint/src/Breakpoint.php
@@ -0,0 +1,62 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\breakpoint\Breakpoint.
+ */
+
+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'], array(), array('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'];
+ }
+
+}