class Breakpoint

Same name in other branches
  1. 9 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
  2. 8.9.x core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
  3. 10 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint

Default object used for breakpoint plugins.

Hierarchy

Expanded class hierarchy of Breakpoint

See also

\Drupal\breakpoint\BreakpointManager

Plugin API

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

... See full list

File

core/modules/breakpoint/src/Breakpoint.php, line 13

Namespace

Drupal\breakpoint
View 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.