1 | <?php |
||
15 | abstract class SchemaPluginBase extends PluginBase implements SchemaPluginInterface, ContainerFactoryPluginInterface { |
||
16 | use DependencySerializationTrait; |
||
17 | |||
18 | /** |
||
19 | * The schema builder service. |
||
20 | * |
||
21 | * @var \Drupal\graphql\Plugin\SchemaBuilder |
||
22 | */ |
||
23 | protected $schemaBuilder; |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { |
||
36 | |||
37 | /** |
||
38 | * SchemaPluginBase constructor. |
||
39 | * |
||
40 | * @param array $configuration |
||
41 | * The plugin configuration array. |
||
42 | * @param string $pluginId |
||
43 | * The plugin id. |
||
44 | * @param array $pluginDefinition |
||
45 | * The plugin definition array. |
||
46 | * @param \Drupal\graphql\Plugin\SchemaBuilder $schemaBuilder |
||
47 | * The schema builder service. |
||
48 | */ |
||
49 | public function __construct($configuration, $pluginId, $pluginDefinition, SchemaBuilder $schemaBuilder) { |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getSchema() { |
||
86 | |||
87 | } |
||
88 |