Skip to content

Commit 865a2b3

Browse files
authored
Preparing beta release. (#411)
1 parent 68edb3f commit 865a2b3

File tree

159 files changed

+21
-8714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+21
-8714
lines changed

graphql.module

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -151,23 +151,3 @@ function graphql_graphql_schema_operations($pluginId, array $pluginDefinition) {
151151

152152
return $operations;
153153
}
154-
155-
/**
156-
* Turn a list of machine names into a camel-cased string.
157-
*
158-
* @deprecated in graphql 3.x and will be removed before 3.0-alpha6.
159-
* Use \Drupal\graphql\Utility\StringHelper::camelCase() instead.
160-
*/
161-
function graphql_camelcase($components) {
162-
return StringHelper::camelCase($components);
163-
}
164-
165-
/**
166-
* Turn a list of machine names into a property-cased string.
167-
*
168-
* @deprecated in graphql 3.x and will be removed before 3.0-alpha6.
169-
* Use \Drupal\graphql\Utility\StringHelper::propCase() instead.
170-
*/
171-
function graphql_propcase($components) {
172-
return StringHelper::propCase($components);
173-
}

modules/graphql_core/src/Plugin/Deriver/Fields/ContextDeriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getDerivativeDefinitions($basePluginDefinition) {
4343
$dataType = $context->getContextDefinition()->getDataType();
4444

4545
$this->derivatives[$id] = [
46-
'name' => StringHelper::propCase([$id, 'context']),
46+
'name' => StringHelper::propCase($id, 'context'),
4747
'context_id' => $id,
4848
'nullable' => TRUE,
4949
'multi' => FALSE,

modules/graphql_core/src/Plugin/Deriver/Fields/EntityByIdDeriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getDerivativeDefinitions($basePluginDefinition) {
4747
foreach ($this->entityTypeManager->getDefinitions() as $id => $type) {
4848
if ($type instanceof ContentEntityTypeInterface) {
4949
$derivative = [
50-
'name' => StringHelper::propCase([$id, 'by', 'id']),
50+
'name' => StringHelper::propCase($id, 'by', 'id'),
5151
'type' => StringHelper::camelCase($id),
5252
'entity_type' => $id,
5353
] + $basePluginDefinition;

modules/graphql_core/src/Plugin/Deriver/Fields/EntityFieldDeriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ protected function getDerivativeDefinitionsFromFieldDefinition($entityTypeId, Fi
6666
*/
6767
protected function getParentsForField($entityTypeId, FieldStorageDefinitionInterface $fieldDefinition) {
6868
if ($fieldDefinition->isBaseField()) {
69-
return [StringHelper::camelCase([$entityTypeId])];
69+
return [StringHelper::camelCase($entityTypeId)];
7070
}
7171

7272
if ($fieldDefinition instanceof FieldStorageConfigInterface) {
7373
return array_values(array_map(function ($bundleId) use ($entityTypeId) {
74-
return StringHelper::camelCase([$entityTypeId, $bundleId]);
74+
return StringHelper::camelCase($entityTypeId, $bundleId);
7575
}, $fieldDefinition->getBundles()));
7676
}
7777

modules/graphql_core/src/Plugin/Deriver/Fields/EntityQueryDeriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getDerivativeDefinitions($basePluginDefinition) {
5757
foreach ($this->entityTypeManager->getDefinitions() as $id => $type) {
5858
if ($type instanceof ContentEntityTypeInterface) {
5959
$derivative = [
60-
'name' => StringHelper::propCase([$id, 'query']),
60+
'name' => StringHelper::propCase($id, 'query'),
6161
'entity_type' => $id,
6262
] + $basePluginDefinition;
6363

@@ -73,7 +73,7 @@ public function getDerivativeDefinitions($basePluginDefinition) {
7373
$derivative['arguments']['filter'] = [
7474
'multi' => FALSE,
7575
'nullable' => TRUE,
76-
'type' => StringHelper::camelCase([$id, 'query', 'filter', 'input']),
76+
'type' => StringHelper::camelCase($id, 'query', 'filter', 'input'),
7777
];
7878
}
7979

modules/graphql_core/src/Plugin/Deriver/Fields/ViewDeriver.php

Lines changed: 0 additions & 207 deletions
This file was deleted.

modules/graphql_core/src/Plugin/Deriver/Fields/ViewResultCountDeriver.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

modules/graphql_core/src/Plugin/Deriver/Fields/ViewResultListDeriver.php

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)