public function BlazyFormatterInterface::extractFirstItem in Blazy 7
Same name and namespace in other branches
- 8.2 src/BlazyFormatterInterface.php \Drupal\blazy\BlazyFormatterInterface::extractFirstItem()
Extract the first image item to build colorbox/zoom-like gallery.
Parameters
array $settings: The $settings array being modified.
object $item: The Drupal\image\Plugin\Field\FieldType\ImageItem item.
object $entity: The optional media entity.
File
- src/
BlazyFormatterInterface.php, line 60
Class
- BlazyFormatterInterface
- Defines common field formatter-related methods: Blazy, Slick.
Namespace
Drupal\blazyCode
public function extractFirstItem(array &$settings, $item, $entity = NULL);