public function ImageUrl::__construct in GraphQL 8.4
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.
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ GraphQL/ DataProducer/ Entity/ Fields/ Image/ ImageUrl.php, line 67
Class
- ImageUrl
- Returns the file URL of a file entity.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\Entity\Fields\ImageCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, RendererInterface $renderer) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->renderer = $renderer;
}