You are here

public function ImageDerivative::__construct in GraphQL 8.3

ImageDerivative constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

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

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/Fields/Image/ImageDerivative.php, line 63

Class

ImageDerivative
Retrieve the image field derivative (image style).

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Entity\Fields\Image

Code

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