summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint/src/BreakpointInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/breakpoint/src/BreakpointInterface.php')
-rw-r--r--core/modules/breakpoint/src/BreakpointInterface.php60
1 files changed, 40 insertions, 20 deletions
diff --git a/core/modules/breakpoint/src/BreakpointInterface.php b/core/modules/breakpoint/src/BreakpointInterface.php
index cf62bcd..a39d350 100644
--- a/core/modules/breakpoint/src/BreakpointInterface.php
+++ b/core/modules/breakpoint/src/BreakpointInterface.php
@@ -2,42 +2,62 @@
/**
* @file
- * Contains \Drupal\breakpoint\Entity\BreakpointInterface.
+ * Contains \Drupal\breakpoint\BreakpointInterface.
*/
namespace Drupal\breakpoint;
-use Drupal\Core\Config\Entity\ConfigEntityInterface;
-
/**
- * Provides an interface defining a breakpoint entity.
+ * Interface for Breakpoint plugins.
*/
-interface BreakpointInterface extends ConfigEntityInterface {
+interface BreakpointInterface {
/**
- * Checks if the breakpoint is valid.
+ * Returns the translated label.
*
- * @throws \Drupal\breakpoint\InvalidBreakpointSourceTypeException
- * @throws \Drupal\breakpoint\InvalidBreakpointSourceException
- * @throws \Drupal\breakpoint\InvalidBreakpointNameException
- * @throws \Drupal\breakpoint\InvalidBreakpointMediaQueryException
+ * @return string
+ * The translated label.
+ */
+ public function getLabel();
+
+ /**
+ * Returns the weight.
+ *
+ * @return int
+ * The weight.
+ */
+ public function getWeight();
+
+ /**
+ * Returns the media query.
*
- * @see isValidMediaQuery()
+ * @return string
+ * The media query.
*/
- public function isValid();
+ public function getMediaQuery();
/**
- * Checks if a mediaQuery is valid.
+ * Returns the multipliers.
*
- * @throws \Drupal\breakpoint\InvalidBreakpointMediaQueryException
+ * @return array
+ * The multipliers.
+ */
+ public function getMultipliers();
+
+ /**
+ * Returns the provider.
*
- * @return bool
- * Returns TRUE if the media query is valid.
+ * @return string
+ * The provider.
+ */
+ public function getProvider();
+
+ /**
+ * Returns the breakpoint group.
*
- * @see http://www.w3.org/TR/css3-mediaqueries/
- * @see http://www.w3.org/Style/CSS/Test/MediaQueries/20120229/reports/implement-report.html
- * @see https://github.com/adobe/webkit/blob/master/Source/WebCore/css/
+ * @return string
+ * The breakpoint group.
*/
- public static function isValidMediaQuery($media_query);
+ public function getGroup();
}