lory-8.x-1.x-dev/src/LoryFormatterInterface.php

src/LoryFormatterInterface.php
<?php

namespace Drupal\lory;

/**
 * Defines re-usable services and functions for lory field plugins.
 */
interface LoryFormatterInterface {

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

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc