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 a FilesModel, a FilesystemItem, an ImageInterface, a tl_files UUID/ID/path or a file system path.
  • size: A picture size configuration or reference or size array.
  • configuration: Additional configuration for the FigureBuilder.
  • template: Optional figure template (default is @ContaoCore/Image/Studio/figure.html.twig)