class Spacing in Bootstrap Styles 1.0.x
Class Spacing.
@package Drupal\bootstrap_styles\Plugin\StylesGroup
Plugin annotation
@StylesGroup(
  id = "spacing",
  title = @Translation("Spacing"),
  weight = 3,
  icon = "bootstrap_styles/images/plugins/spacing-icon.svg"
)
  Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\bootstrap_styles\StylesGroup\StylesGroupPluginBase implements StylesGroupPluginInterface, ContainerFactoryPluginInterface uses StringTranslationTrait
- class \Drupal\bootstrap_styles\Plugin\BootstrapStyles\StylesGroup\Spacing uses ResponsiveTrait
 
 
 - class \Drupal\bootstrap_styles\StylesGroup\StylesGroupPluginBase implements StylesGroupPluginInterface, ContainerFactoryPluginInterface uses StringTranslationTrait
 
Expanded class hierarchy of Spacing
1 string reference to 'Spacing'
- Spacing::buildConfigurationForm in src/
Plugin/ BootstrapStyles/ StylesGroup/ Spacing.php  
File
- src/
Plugin/ BootstrapStyles/ StylesGroup/ Spacing.php, line 21  
Namespace
Drupal\bootstrap_styles\Plugin\BootstrapStyles\StylesGroupView source
class Spacing extends StylesGroupPluginBase {
  use ResponsiveTrait;
  /**
   * {@inheritdoc}
   */
  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form['spacing'] = [
      '#type' => 'details',
      '#title' => $this
        ->t('Spacing'),
      '#open' => FALSE,
    ];
    return $form;
  }
  /**
   * {@inheritdoc}
   */
  public function buildStyleFormElements(array &$form, FormStateInterface $form_state, $storage) {
    $this
      ->buildBreakpointsFields($form, 'spacing');
    $form['spacing_preview'] = [
      '#theme' => 'spacing_preview',
    ];
    return $form;
  }
}Members
| 
            Name | 
                  Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| 
            HelperTrait:: | 
                  public | function | Generates the svg markup from path. | |
| 
            PluginBase:: | 
                  protected | property | Configuration information passed into the plugin. | 1 | 
| 
            PluginBase:: | 
                  protected | property | The plugin implementation definition. | 1 | 
| 
            PluginBase:: | 
                  protected | property | The plugin_id. | |
| 
            PluginBase:: | 
                  constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
| 
            PluginBase:: | 
                  public | function | 
            Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: | 
                  |
| 
            PluginBase:: | 
                  public | function | 
            Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: | 
                  |
| 
            PluginBase:: | 
                  public | function | 
            Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: | 
                  2 | 
| 
            PluginBase:: | 
                  public | function | 
            Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: | 
                  |
| 
            PluginBase:: | 
                  public | function | Determines if the plugin is configurable. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Add the breakpoints classes to the build classes. | |
| 
            ResponsiveTrait:: | 
                  protected | function | TODO: Remove and replace this function. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Build the breakpoints style form elements. | |
| 
            ResponsiveTrait:: | 
                  protected | function | TODO: RENAME Build the breakpoints style form elements. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Build the responsive previewer form elements. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Build the breakpoints configuration form. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Create breakpoints fields for class index based field like padding. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Create breakpoints fields for a given field. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Create breakpoint field for class index based field like padding. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Create breakpoint field for a given field. | |
| 
            ResponsiveTrait:: | 
                  protected | function | The available breakpoint. | |
| 
            ResponsiveTrait:: | 
                  protected | function | The available breakpoint. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Get breakpoint title by key. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Save the breakpoints fields values to the storage. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Save the breakpoints fields values to the storage. | |
| 
            ResponsiveTrait:: | 
                  protected | function | Save the breakpoints fields values to the configuration. | |
| 
            Spacing:: | 
                  public | function | 
            Overrides StylesGroupPluginBase:: | 
                  |
| 
            Spacing:: | 
                  public | function | 
            Overrides StylesGroupPluginBase:: | 
                  |
| 
            StringTranslationTrait:: | 
                  protected | property | The string translation service. | 4 | 
| 
            StringTranslationTrait:: | 
                  protected | function | Formats a string containing a count of items. | |
| 
            StringTranslationTrait:: | 
                  protected | function | Returns the number of plurals supported by a given language. | |
| 
            StringTranslationTrait:: | 
                  protected | function | Gets the string translation service. | |
| 
            StringTranslationTrait:: | 
                  public | function | Sets the string translation service to use. | 2 | 
| 
            StringTranslationTrait:: | 
                  protected | function | Translates a string to the current language or to a given language. | |
| 
            StylesGroupPluginBase:: | 
                  protected | property | The config factory. | |
| 
            StylesGroupPluginBase:: | 
                  public | function | ||
| 
            StylesGroupPluginBase:: | 
                  public | function | ||
| 
            StylesGroupPluginBase:: | 
                  constant | Config settings. | ||
| 
            StylesGroupPluginBase:: | 
                  public static | function | 
            Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: | 
                  |
| 
            StylesGroupPluginBase:: | 
                  public | function | ||
| 
            StylesGroupPluginBase:: | 
                  public | function | 
            Return the title of the Styles Group form plugin. Overrides StylesGroupPluginInterface:: | 
                  |
| 
            StylesGroupPluginBase:: | 
                  public | function | ||
| 
            StylesGroupPluginBase:: | 
                  public | function | ||
| 
            StylesGroupPluginBase:: | 
                  public | function | 1 | |
| 
            StylesGroupPluginBase:: | 
                  public | function | ||
| 
            StylesGroupPluginBase:: | 
                  public | function | 
            Constructs a StylePluginBase object. Overrides PluginBase:: |