Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
6 / 6 |
CRAP | |
100.00% |
6 / 6 |
| Breakpoint | |
100.00% |
1 / 1 |
|
100.00% |
6 / 6 |
6 | |
100.00% |
6 / 6 |
| getLabel | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getWeight | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getMediaQuery | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getMultipliers | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getProvider | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| getGroup | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?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']; | |
| } | |
| } |