interface GridStackSkinPluginInterface in GridStack 8.2
Provides an interface defining GridStack skins.
Hierarchy
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- interface \Drupal\gridstack\GridStackPluginInterface
- interface \Drupal\gridstack\GridStackSkinPluginInterface
- interface \Drupal\gridstack\GridStackPluginInterface
Expanded class hierarchy of GridStackSkinPluginInterface
All classes that implement GridStackSkinPluginInterface
File
- src/
GridStackSkinPluginInterface.php, line 8
Namespace
Drupal\gridstackView source
interface GridStackSkinPluginInterface extends GridStackPluginInterface {
/**
* Returns the GridStack skins.
*
* This can be used to register skins for the GridStack. Skins will be
* available when configuring the Optionset, Field formatter, or Views style,
* or custom coded gridstacks.
*
* GridStack skins get a unique CSS class to use for styling, e.g.:
* If your skin name is "my_module_gridstack_flip", the CSS class is:
* gridstack--skin--my-module-gridstack-flip
*
* A skin can specify CSS and JS files to include when GridStack is displayed,
* except for a thumbnail skin which accepts CSS only.
*
* Each skin supports a few keys:
* - name: The human readable name of the skin.
* - description: The description about the skin, for help and manage pages.
* - css: An array of CSS files to attach.
* - js: An array of JS files to attach, e.g.: image zoomer, reflection, etc.
* - dependencies: Similar to how core library dependencies constructed.
* - provider: A module name registering the skins.
*
* @return array
* The array of the skins.
*/
public function skins();
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
GridStackPluginInterface:: |
public | function | Returns the plugin label. | 1 |
GridStackSkinPluginInterface:: |
public | function | Returns the GridStack skins. | 1 |