class Breakpoint in Drupal 10
Same name and namespace in other branches
- 8 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
- 9 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
Default object used for breakpoint plugins.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\breakpoint\Breakpoint implements BreakpointInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
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
5 string references to 'Breakpoint'
- breakpoint.info.yml in core/
modules/ breakpoint/ breakpoint.info.yml - core/modules/breakpoint/breakpoint.info.yml
- BreakpointTest::testGetGroup in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getGroup
- BreakpointTest::testGetProvider in core/
modules/ breakpoint/ tests/ src/ Unit/ BreakpointTest.php - @covers ::getProvider
- breakpoint_help in core/
modules/ breakpoint/ breakpoint.module - Implements hook_help().
- HelpTest::testHelp in core/
modules/ help/ tests/ src/ Functional/ HelpTest.php - Logs in users, tests help pages.
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'];
}
}