public function GridStackEnginePluginInterface::buildItems in GridStack 8.2
Builds GridStack boxes to support nested grids for Bootstrap/ Foundation.
The nested grids require extra tools like DS, Panelizer, or Widget, to arrange them into their relevant container, e.g.: DS region, Widget block.
Parameters
array $build: An associative array containing:
- items: An array of gridstack contents: text, image or media.
- options: An array of key:value pairs of custom JS options.
- optionset: The cached optionset object to avoid multiple invocations.
- settings: An array of key:value pairs of HTML/layout related settings.
Return value
array The renderable array of a GridStack instance, or empty array.
1 method overrides GridStackEnginePluginInterface::buildItems()
- GridStackEnginePluginBase::buildItems in src/
GridStackEnginePluginBase.php - Builds GridStack boxes to support nested grids for Bootstrap/ Foundation.
File
- src/
GridStackEnginePluginInterface.php, line 48
Class
- GridStackEnginePluginInterface
- Provides an interface defining GridStack layout engines.
Namespace
Drupal\gridstackCode
public function buildItems(array $build);