contao_figure - Twig Function
Details
This page shows version 4.x. The current version can be found here.
This function renders a figure directly and takes 4 arguments: the source image, the size configuration, additional options and which template to use to render the figure.
Arguments
from: Can be aFilesModel, aFilesystemItem, anImageInterface, atl_filesUUID/ID/path or a file system path.size: A picture size configuration or reference or size array.configuration: Additional configuration for theFigureBuilder.template: Optional figure template (default is@ContaoCore/Image/Studio/figure.html.twig)