You are here

GridStackManagerInterface.php in GridStack 8

Same filename and directory in other branches
  1. 8.2 src/GridStackManagerInterface.php

Namespace

Drupal\gridstack

File

src/GridStackManagerInterface.php
View source
<?php

namespace Drupal\gridstack;


/**
 * Defines re-usable services and functions for gridstack plugins.
 */
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 = []);

}

Interfaces

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