You are here

public function ThunderImage::__construct in Thunder 6.2.x

ImageUrl constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Image\ImageFactory $imageFactory: The image factory.

File

modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/ThunderImage.php, line 81

Class

ThunderImage
Returns image meta data.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\DataProducer

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, RendererInterface $renderer, ImageFactory $imageFactory) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->renderer = $renderer;
  $this->imageFactory = $imageFactory;
}