You are here

SlickFormatterInterface.php in Slick Carousel 7.3

Same filename and directory in other branches
  1. 8.2 src/SlickFormatterInterface.php
  2. 8 src/SlickFormatterInterface.php

Namespace

Drupal\slick

File

src/SlickFormatterInterface.php
View source
<?php

namespace Drupal\slick;


/**
 * Defines re-usable services and functions for slick field plugins.
 */
interface SlickFormatterInterface {

  /**
   * 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);

}

Interfaces

Namesort descending Description
SlickFormatterInterface Defines re-usable services and functions for slick field plugins.