You are here

public function Garage::__construct in GraphQL 8.3

Garage 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 garaga service.

Overrides PluginBase::__construct

File

tests/modules/graphql_plugin_test/src/Plugin/GraphQL/Fields/Garage.php, line 52

Class

Garage
List everything we've got in our garage.

Namespace

Drupal\graphql_plugin_test\Plugin\GraphQL\Fields

Code

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