Skip to content

Commit

Permalink
Document mutation type pimcore#50 - rename elements to editables
Browse files Browse the repository at this point in the history
  • Loading branch information
weisswurstkanone committed Sep 23, 2020
1 parent 1fd1afc commit ddf7911
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions doc/graphl/DocumentMutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
mutation {
updateDocumentPage(id: 99, input: {

elements: {input: [
editables: {input: [
{_tagName: "content:2.headline"
text:"HEYYOU 3"},
{_tagName: "headline"
Expand Down Expand Up @@ -63,7 +63,7 @@ mutation {
key: "documentkey47"
parentId: 1
input: {
elements: {
editables: {
areablock: [
{
_tagName: "content"
Expand Down Expand Up @@ -133,7 +133,7 @@ mutation {
updateDocumentEmail(
id: 144
input: {
elements: {
editables: {
wysiwyg: [
{
_tagName: "greeting_text"
Expand Down
4 changes: 2 additions & 2 deletions src/GraphQL/Mutation/MutationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public function processDocumentLinkMutationInput($value, $args, $context, Resolv
public function processDocumentPageMutationInput($value, $args, $context, ResolveInfo $info, $element, $processors) {
$inputValues = $args["input"];
foreach ($inputValues as $key => $value) {
if ($key == 'elements') {
if ($key == 'editables') {
if (method_exists($element, 'getEditables')) {
$element->getEditables();
} else {
Expand Down Expand Up @@ -409,7 +409,7 @@ public function getDocumentPageMutationInputType(&$processors = []) {
'controller' => Type::string(),
'action' => Type::string(),
'template' => Type::string(),
'elements' => $elementInputTypeList
'editables' => $elementInputTypeList
]
]);
return $inputType;
Expand Down

0 comments on commit ddf7911

Please sign in to comment.