You are here

public function GridStackManagerInterface::build in GridStack 8.2

Same name and namespace in other branches
  1. 8 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 26

Class

GridStackManagerInterface
Defines re-usable services and functions for gridstack plugins.

Namespace

Drupal\gridstack

Code

public function build(array $build = []);