interface SlickManagerInterface in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 src/SlickManagerInterface.php \Drupal\slick\SlickManagerInterface
- 8 src/SlickManagerInterface.php \Drupal\slick\SlickManagerInterface
Defines re-usable services and functions for slick plugins.
Hierarchy
- interface \Drupal\blazy\BlazyManagerInterface
- interface \Drupal\slick\SlickManagerInterface
Expanded class hierarchy of SlickManagerInterface
All classes that implement SlickManagerInterface
7 files declare their use of SlickManagerInterface
- SlickAdmin.php in src/
Form/ SlickAdmin.php - SlickEntityFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ SlickEntityFormatterBase.php - SlickEntityReferenceFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ SlickEntityReferenceFormatterBase.php - SlickFormatterBase.php in src/
Plugin/ Field/ FieldFormatter/ SlickFormatterBase.php - SlickFormatterPlugin.php in src/
Plugin/ Field/ FieldFormatter/ SlickFormatterPlugin.php
File
- src/
SlickManagerInterface.php, line 10
Namespace
Drupal\slickView source
interface SlickManagerInterface extends BlazyManagerInterface {
/**
* 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlazyManagerInterface:: |
public | function | Returns array of needed assets suitable for #attached property. | 1 |
BlazyManagerInterface:: |
public | function | Gets the supported lightboxes. | 1 |
BlazyManagerInterface:: |
public | function | Checks for Blazy formatter such as from within a Views style plugin. | 1 |
BlazyManagerInterface:: |
public | function | Typecast the needed settings, blazy-related module can override. | 1 |
SlickManagerInterface:: |
public | function | Returns a renderable array of both main and thumbnail slick instances. | 1 |
SlickManagerInterface:: |
public | function | Returns a cacheable renderable array of a single slick instance. | 1 |