Breakpoint.php

Same filename in other branches
  1. 9 core/modules/breakpoint/src/Breakpoint.php
  2. 10 core/modules/breakpoint/src/Breakpoint.php
  3. 11.x core/modules/breakpoint/src/Breakpoint.php

Namespace

Drupal\breakpoint

File

core/modules/breakpoint/src/Breakpoint.php

View source
<?php

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'], [], [
            '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'];
    }

}

Classes

Title Deprecated Summary
Breakpoint Default object used for breakpoint plugins.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.