You are here

class Breakpoint in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/breakpoint/src/Breakpoint.php \Drupal\breakpoint\Breakpoint
  2. 9 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
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\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