public function BuyCar::__construct in GraphQL 8.3
BuyCar constructor.
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
mixed $pluginDefinition: The plugin definition array.
\Drupal\graphql_plugin_test\GarageInterface $garage: The garage service.
Overrides PluginBase::__construct
File
- tests/
modules/ graphql_plugin_test/ src/ Plugin/ GraphQL/ Mutations/ BuyCar.php, line 55
Class
- BuyCar
- A test mutation.
Namespace
Drupal\graphql_plugin_test\Plugin\GraphQL\MutationsCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, GarageInterface $garage) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->garage = $garage;
}