src/Plugin/GraphQL/Enums/EnumPluginBase.php 1 location
|
@@ 29-37 (lines=9) @@
|
| 26 |
|
/** |
| 27 |
|
* {@inheritdoc} |
| 28 |
|
*/ |
| 29 |
|
public function getDefinition() { |
| 30 |
|
$definition = $this->getPluginDefinition(); |
| 31 |
|
|
| 32 |
|
return [ |
| 33 |
|
'name' => $definition['name'], |
| 34 |
|
'description' => $this->buildDescription($definition), |
| 35 |
|
'values' => $this->buildEnumValues($definition), |
| 36 |
|
]; |
| 37 |
|
} |
| 38 |
|
|
| 39 |
|
/** |
| 40 |
|
* @param $definition |
src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 location
|
@@ 33-41 (lines=9) @@
|
| 30 |
|
/** |
| 31 |
|
* {@inheritdoc} |
| 32 |
|
*/ |
| 33 |
|
public function getDefinition() { |
| 34 |
|
$definition = $this->getPluginDefinition(); |
| 35 |
|
|
| 36 |
|
return [ |
| 37 |
|
'name' => $definition['name'], |
| 38 |
|
'description' => $this->buildDescription($definition), |
| 39 |
|
'fields' => $this->buildFields($definition), |
| 40 |
|
]; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
/** |
| 44 |
|
* @param $definition |
src/Plugin/GraphQL/Types/TypePluginBase.php 1 location
|
@@ 54-62 (lines=9) @@
|
| 51 |
|
/** |
| 52 |
|
* {@inheritdoc} |
| 53 |
|
*/ |
| 54 |
|
public function getDefinition() { |
| 55 |
|
$definition = $this->getPluginDefinition(); |
| 56 |
|
|
| 57 |
|
return [ |
| 58 |
|
'name' => $definition['name'], |
| 59 |
|
'description' => $this->buildDescription($definition), |
| 60 |
|
'interfaces' => $this->buildInterfaces($definition), |
| 61 |
|
]; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
/** |
| 65 |
|
* @param $definition |