class Breakpoint
Same name in other branches
- 8.9.x core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
- 10 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
- 11.x core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
Default object used for breakpoint plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\breakpoint\Breakpoint extends \Drupal\Core\Plugin\PluginBase implements \Drupal\breakpoint\BreakpointInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of Breakpoint
See also
\Drupal\breakpoint\BreakpointManager
1 file declares its use of Breakpoint
- BreakpointTest.php in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php
11 string references to 'Breakpoint'
- breakpoint.info.yml in core/
modules/ breakpoint/ breakpoint.info.yml - core/modules/breakpoint/breakpoint.info.yml
- Breakpoint::getLabel in core/
modules/ breakpoint/ src/ Breakpoint.php - Returns the translated label.
- BreakpointManager::getGroupLabel in core/
modules/ breakpoint/ src/ BreakpointManager.php - Gets the label for a breakpoint group.
- BreakpointTest::testGetGroup in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getGroup
- BreakpointTest::testGetLabel in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getLabel
File
-
core/
modules/ breakpoint/ src/ Breakpoint.php, line 13
Namespace
Drupal\breakpointView source
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'];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Breakpoint::getGroup | public | function | Returns the breakpoint group. | Overrides BreakpointInterface::getGroup |
Breakpoint::getLabel | public | function | Returns the translated label. | Overrides BreakpointInterface::getLabel |
Breakpoint::getMediaQuery | public | function | Returns the media query. | Overrides BreakpointInterface::getMediaQuery |
Breakpoint::getMultipliers | public | function | Returns the multipliers. | Overrides BreakpointInterface::getMultipliers |
Breakpoint::getProvider | public | function | Returns the provider. | Overrides BreakpointInterface::getProvider |
Breakpoint::getWeight | public | function | Returns the weight. | Overrides BreakpointInterface::getWeight |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.