public function GridStackManagerInterface::build in GridStack 8
Same name and namespace in other branches
- 8.2 src/GridStackManagerInterface.php \Drupal\gridstack\GridStackManagerInterface::build()
Returns a cacheable renderable array of a single gridstack instance.
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 cacheable renderable array of a gridstack instance, or empty array.
1 method overrides GridStackManagerInterface::build()
- GridStackManager::build in src/
GridStackManager.php - Returns a cacheable renderable array of a single gridstack instance.
File
- src/
GridStackManagerInterface.php, line 23
Class
- GridStackManagerInterface
- Defines re-usable services and functions for gridstack plugins.
Namespace
Drupal\gridstackCode
public function build(array $build = []);