class GridStackDefault in GridStack 8
Same name and namespace in other branches
- 8.2 src/GridStackDefault.php \Drupal\gridstack\GridStackDefault
Defines shared plugin default settings for field formatter and Views style.
Hierarchy
- class \Drupal\blazy\BlazyDefault
- class \Drupal\blazy\Dejavu\BlazyDefault
- class \Drupal\gridstack\GridStackDefault
- class \Drupal\blazy\Dejavu\BlazyDefault
Expanded class hierarchy of GridStackDefault
See also
FormatterBase::defaultSettings()
StylePluginBase::defineOptions()
3 files declare their use of GridStackDefault
- GridStackEntityFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ GridStackEntityFormatterBase.php - GridStackFileFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ GridStackFileFormatterBase.php - GridStackViews.php in src/
Plugin/ views/ style/ GridStackViews.php
File
- src/
GridStackDefault.php, line 13
Namespace
Drupal\gridstackView source
class GridStackDefault extends BlazyDefault {
/**
* Returns image-related field formatter and Views settings.
*/
public static function imageSettings() {
$settings = parent::imageSettings();
foreach ([
'breakpoints',
'responsive_image_style',
'sizes',
] as $key) {
unset($settings[$key]);
}
return [
'background' => TRUE,
] + $settings;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlazyDefault:: |
private static | property | The alterable settings. | |
BlazyDefault:: |
private static | property | The supported $breakpoints. | |
BlazyDefault:: |
private static | property | The current class instance. | |
BlazyDefault:: |
public | function | Returns alterable plugin settings to pass the tests. | |
BlazyDefault:: |
public static | function | Returns image-related field formatter and Views settings. | |
BlazyDefault:: |
public static | function | Returns basic plugin settings. | |
BlazyDefault:: |
public static | function | Returns sensible default options common for entities lacking of UI. | |
BlazyDefault:: |
public static | function | Returns fieldable entity formatter and Views settings. | |
BlazyDefault:: |
public static | function | Returns Blazy specific breakpoints. | |
BlazyDefault:: |
public static | function | Returns the static instance of this class. | |
BlazyDefault:: |
public static | function | Returns optional grid field formatter and Views settings. | |
BlazyDefault:: |
public static | function | Returns sensible default html settings to shutup notices when lacking. | |
BlazyDefault:: |
public static | function | Returns sensible default options common for Views lacking of UI. | |
BlazyDefault:: |
constant | Defines constant for the supported text tags. | ||
BlazyDefault:: |
public static | function | Returns additional/ optional blazy theme attributes. | |
BlazyDefault:: |
public static | function | Returns blazy theme properties, its image and container attributes. | |
BlazyDefault:: |
public static | function | Returns shared global form settings which should be consumed at formatters. | |
BlazyDefault:: |
public static | function | Returns Views specific settings. | |
GridStackDefault:: |
public static | function |
Returns image-related field formatter and Views settings. Overrides BlazyDefault:: |