You are here

public function ImageDerivative::__construct in GraphQL 8.4

ImageDerivative 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.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/Entity/Fields/Image/ImageDerivative.php, line 72

Class

ImageDerivative
Returns an image style derivative of an image.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Entity\Fields\Image

Code

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