comparison core/modules/breakpoint/src/Breakpoint.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
1 <?php
2
3 namespace Drupal\breakpoint;
4
5 use Drupal\Core\Plugin\PluginBase;
6
7 /**
8 * Default object used for breakpoint plugins.
9 *
10 * @see \Drupal\breakpoint\BreakpointManager
11 * @see plugin_api
12 */
13 class Breakpoint extends PluginBase implements BreakpointInterface {
14
15 /**
16 * {@inheritdoc}
17 */
18 public function getLabel() {
19 return $this->t($this->pluginDefinition['label'], [], ['context' => 'breakpoint']);
20 }
21
22 /**
23 * {@inheritdoc}
24 */
25 public function getWeight() {
26 return (int) $this->pluginDefinition['weight'];
27 }
28
29 /**
30 * {@inheritdoc}
31 */
32 public function getMediaQuery() {
33 return $this->pluginDefinition['mediaQuery'];
34 }
35
36 /**
37 * {@inheritdoc}
38 */
39 public function getMultipliers() {
40 return $this->pluginDefinition['multipliers'];
41 }
42
43 /**
44 * {@inheritdoc}
45 */
46 public function getProvider() {
47 return $this->pluginDefinition['provider'];
48 }
49
50 /**
51 * {@inheritdoc}
52 */
53 public function getGroup() {
54 return $this->pluginDefinition['group'];
55 }
56
57 }