You are here

interface GridStackManagerInterface in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/GridStackManagerInterface.php \Drupal\gridstack\GridStackManagerInterface

Defines re-usable services and functions for gridstack plugins.

Hierarchy

Expanded class hierarchy of GridStackManagerInterface

All classes that implement GridStackManagerInterface

8 files declare their use of GridStackManagerInterface
GridStackAdmin.php in src/Form/GridStackAdmin.php
GridStackEntityFormatterBase.php in src/Plugin/Field/FieldFormatter/GridStackEntityFormatterBase.php
GridStackFileFormatterBase.php in src/Plugin/Field/FieldFormatter/GridStackFileFormatterBase.php
GridStackForm.php in modules/gridstack_ui/src/Form/GridStackForm.php
GridStackLayout.php in src/Layout/GridStackLayout.php

... See full list

File

src/GridStackManagerInterface.php, line 8

Namespace

Drupal\gridstack
View source
interface GridStackManagerInterface {

  /**
   * Returns a cacheable renderable array of a single gridstack instance.
   *
   * @param 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 array
   *   The cacheable renderable array of a gridstack instance, or empty array.
   */
  public function build(array $build = []);

}

Members

Namesort descending Modifiers Type Description Overrides
GridStackManagerInterface::build public function Returns a cacheable renderable array of a single gridstack instance. 1