3 namespace Drupal\slick;
6 * Defines re-usable services and functions for slick plugins.
8 interface SlickManagerInterface {
11 * Returns a cacheable renderable array of a single slick instance.
14 * An associative array containing:
15 * - items: An array of slick contents: text, image or media.
16 * - options: An array of key:value pairs of custom JS overrides.
17 * - optionset: The cached optionset object to avoid multiple invocations.
18 * - settings: An array of key:value pairs of HTML/layout related settings.
21 * The cacheable renderable array of a slick instance, or empty array.
23 public static function slick(array $build = []);
26 * Returns a renderable array of both main and thumbnail slick instances.
29 * An associative array containing:
30 * - items: An array of slick contents: text, image or media.
31 * - options: An array of key:value pairs of custom JS overrides.
32 * - optionset: The cached optionset object to avoid multiple invocations.
33 * - settings: An array of key:value pairs of HTML/layout related settings.
34 * - thumb: An associative array of slick thumbnail following the same
35 * structure as the main display: $build['thumb']['items'], etc.
38 * The renderable array of both main and thumbnail slick instances.
40 public function build(array $build = []);