You are here

interface SlickManagerInterface in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 src/SlickManagerInterface.php \Drupal\slick\SlickManagerInterface
  2. 7.3 src/SlickManagerInterface.php \Drupal\slick\SlickManagerInterface

Defines re-usable services and functions for slick plugins.

Hierarchy

Expanded class hierarchy of SlickManagerInterface

All classes that implement SlickManagerInterface

1 file declares its use of SlickManagerInterface
SlickAdmin.php in src/Form/SlickAdmin.php

File

src/SlickManagerInterface.php, line 11

Namespace

Drupal\slick
View source
interface SlickManagerInterface extends BlazyManagerInterface, TrustedCallbackInterface {

  /**
   * Returns a cacheable renderable array of a single slick instance.
   *
   * @param array $build
   *   An associative array containing:
   *   - items: An array of slick contents: text, image or media.
   *   - options: An array of key:value pairs of custom JS overrides.
   *   - 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 slick instance, or empty array.
   */
  public function slick(array $build = []);

  /**
   * Returns a renderable array of both main and thumbnail slick instances.
   *
   * @param array $build
   *   An associative array containing:
   *   - items: An array of slick contents: text, image or media.
   *   - options: An array of key:value pairs of custom JS overrides.
   *   - optionset: The cached optionset object to avoid multiple invocations.
   *   - settings: An array of key:value pairs of HTML/layout related settings.
   *   - thumb: An associative array of slick thumbnail following the same
   *     structure as the main display: $build['thumb']['items'], etc.
   *
   * @return array
   *   The renderable array of both main and thumbnail slick instances.
   */
  public function build(array $build = []);

}

Members

Namesort descending Modifiers Type Description Overrides
SlickManagerInterface::build public function Returns a renderable array of both main and thumbnail slick instances. 1
SlickManagerInterface::slick public function Returns a cacheable renderable array of a single slick instance. 1
TrustedCallbackInterface::THROW_EXCEPTION constant Untrusted callbacks throw exceptions.
TrustedCallbackInterface::TRIGGER_SILENCED_DEPRECATION constant Untrusted callbacks trigger silenced E_USER_DEPRECATION errors.
TrustedCallbackInterface::TRIGGER_WARNING constant Untrusted callbacks trigger E_USER_WARNING errors.
TrustedCallbackInterface::trustedCallbacks public static function Lists the trusted callbacks provided by the implementing class. 34