Skip to content

Commit fb0ae9e

Browse files
blazeyofubhy
authored andcommitted
Renamed 'types' property of field plugins to 'parents'. (#397)
1 parent ab5ba31 commit fb0ae9e

93 files changed

Lines changed: 93 additions & 93 deletions

File tree

Some content is hidden

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

modules/graphql_block/src/Plugin/GraphQL/Fields/BlocksByRegion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* secure = true,
2626
* name = "blocksByRegion",
2727
* type = "Entity",
28-
* types = {"Url", "Root"},
28+
* parents = {"Url", "Root"},
2929
* multi = true,
3030
* arguments = {
3131
* "region" = "String"

modules/graphql_breadcrumbs/src/Plugin/GraphQL/Fields/Breadcrumbs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* name = "breadcrumb",
2323
* type = "Link",
2424
* multi = true,
25-
* types = {"Url"},
25+
* parents = {"Url"},
2626
* )
2727
*/
2828
class Breadcrumbs extends SubrequestFieldBase {

modules/graphql_breadcrumbs/src/Plugin/GraphQL/Fields/Label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* secure = true,
1515
* name = "text",
1616
* type = "String",
17-
* types = {"Link"}
17+
* parents = {"Link"}
1818
* )
1919
*/
2020
class Label extends FieldPluginBase {

modules/graphql_breadcrumbs/src/Plugin/GraphQL/Fields/Url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* secure = true,
1515
* name = "url",
1616
* type = "Url",
17-
* types = {"Link"}
17+
* parents = {"Link"}
1818
* )
1919
*/
2020
class Url extends FieldPluginBase {

modules/graphql_content/src/Plugin/Deriver/DisplayedFieldDeriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function getDerivativeDefinitions($basePluginDefinition) {
153153

154154
$this->derivatives[$typeId . '-' . $bundle . '-' . $field] = [
155155
'name' => StringHelper::propCase($field),
156-
'types' => [StringHelper::camelCase([$typeId, $bundle])],
156+
'parents' => [StringHelper::camelCase([$typeId, $bundle])],
157157
'entity_type' => $typeId,
158158
'bundle' => $bundle,
159159
'field' => $field,

modules/graphql_content/src/Plugin/Deriver/FieldFormatterDeriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function __construct(
9797
protected function getDefinition($entityType, $bundle, array $displayOptions, FieldStorageDefinitionInterface $storage = NULL) {
9898
if (isset($storage)) {
9999
return [
100-
'types' => [StringHelper::camelCase([$entityType, $bundle])],
100+
'parents' => [StringHelper::camelCase([$entityType, $bundle])],
101101
'name' => graphql_propcase($storage->getName()),
102102
'virtual' => !$storage,
103103
'multi' => $storage ? $storage->getCardinality() != 1 : FALSE,

modules/graphql_content_mutation/src/Plugin/GraphQL/Fields/EntityCrudOutputEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* secure = true,
1515
* name = "entity",
1616
* type = "Entity",
17-
* types = {"EntityCrudOutput"},
17+
* parents = {"EntityCrudOutput"},
1818
* nullable = true
1919
* )
2020
*/

modules/graphql_content_mutation/src/Plugin/GraphQL/Fields/EntityCrudOutputErrors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* secure = true,
1515
* name = "errors",
1616
* type = "String",
17-
* types = {"EntityCrudOutput"},
17+
* parents = {"EntityCrudOutput"},
1818
* multi = true,
1919
* nullable = false
2020
* )

modules/graphql_content_mutation/src/Plugin/GraphQL/Fields/EntityCrudOutputViolations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* secure = true,
1515
* name = "violations",
1616
* type = "ConstraintViolation",
17-
* types = {"EntityCrudOutput"},
17+
* parents = {"EntityCrudOutput"},
1818
* multi = true,
1919
* nullable = false
2020
* )

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function getDerivativesFromPropertyDefinitions($entityTypeId, FieldSto
2626
$fieldName = $definition->getName();
2727

2828
$derivative = [
29-
'types' => isset($bundleId) ? [StringHelper::camelCase([$entityTypeId, $bundleId])] : [StringHelper::camelCase([$entityTypeId])],
29+
'parents' => isset($bundleId) ? [StringHelper::camelCase([$entityTypeId, $bundleId])] : [StringHelper::camelCase([$entityTypeId])],
3030
'name' => EntityField::getId($fieldName),
3131
'multi' => $definition->isMultiple(),
3232
'field' => $fieldName,

0 commit comments

Comments
 (0)