You are here

interface SlickFormatterInterface in Slick Carousel 8.2

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

Defines re-usable services and functions for slick field plugins.

Hierarchy

Expanded class hierarchy of SlickFormatterInterface

All classes that implement SlickFormatterInterface

File

src/SlickFormatterInterface.php, line 10

Namespace

Drupal\slick
View source
interface SlickFormatterInterface extends BlazyFormatterInterface {

  /**
   * Gets the thumbnail image using theme_image_style().
   *
   * @param array $settings
   *   The array containing: thumbnail_style, etc.
   * @param object $item
   *   The \Drupal\image\Plugin\Field\FieldType\ImageItem object.
   *
   * @return array
   *   The renderable array of thumbnail image.
   */
  public function getThumbnail(array $settings = [], $item = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
BlazyFormatterInterface::buildSettings public function Modifies the field formatter settings inherited by child elements. 1
BlazyFormatterInterface::extractFirstItem public function Extract the first image item to build colorbox/zoom-like gallery. 1
BlazyFormatterInterface::isCrop public function Checks if an image style contains crop effect. 1
BlazyFormatterInterface::postBuildElements public function Modifies the field formatter settings not inherited by child elements. 1
BlazyFormatterInterface::preBuildElements public function Modifies the field formatter settings inherited by child elements. 1
BlazyManagerInterface::attach public function Returns array of needed assets suitable for #attached property. 1
BlazyManagerInterface::getImageEffects public function Returns the supported image effects. 1
BlazyManagerInterface::getIoSettings public function Returns drupalSettings for IO. 1
BlazyManagerInterface::getLightboxes public function Gets the supported lightboxes. 1
BlazyManagerInterface::isBlazy public function Checks for Blazy formatter such as from within a Views style plugin. 1
SlickFormatterInterface::getThumbnail public function Gets the thumbnail image using theme_image_style(). 1