You are here

SlickFormatterInterface.php in Slick Carousel 8.2

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

Namespace

Drupal\slick

File

src/SlickFormatterInterface.php
View source
<?php

namespace Drupal\slick;

use Drupal\blazy\BlazyFormatterInterface;

/**
 * Defines re-usable services and functions for slick field plugins.
 */
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);

}

Interfaces

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