You are here

public static function ImageStyleRenderer::loadImageFile in UIkit Components 8.3

@inheritdoc

1 call to ImageStyleRenderer::loadImageFile()
UIkitComment::preRenderUIkitComment in src/Element/UIkitComment.php
Pre-render callback: Sets the comment attributes.

File

src/ImageStyleRenderer.php, line 66

Class

ImageStyleRenderer
Builds render arrays for image styles.

Namespace

Drupal\uikit_components

Code

public static function loadImageFile($build) {
  return [
    '#theme' => 'image_style',
    '#style_name' => $build['style_name'],
    '#uri' => $build['uri'],
  ];
}