Skip to content

Commit

Permalink
magento/graphql-ce#387: Test coverage of getting IDs of CMS page/bloc…
Browse files Browse the repository at this point in the history
…ks by GraphQL API
  • Loading branch information
atwixfirster committed Apr 16, 2019
1 parent 263588a commit 81984dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ private function convertPageData(PageInterface $page)
$pageData = [
'url_key' => $page->getIdentifier(),
PageInterface::PAGE_ID => $page->getId(),
PageInterface::IDENTIFIER => $page->getIdentifier(),
PageInterface::TITLE => $page->getTitle(),
PageInterface::CONTENT => $renderedContent,
PageInterface::CONTENT_HEADING => $page->getContentHeading(),
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/CmsGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Query {

type CmsPage @doc(description: "CMS page defines all CMS page information") {
page_id: Int @doc(description: "Entity ID of CMS page")
identifier: String @doc(description: "Identifier of the CMS page")
url_key: String @doc(description: "URL key of CMS page")
title: String @doc(description: "CMS page title")
content: String @doc(description: "CMS page content")
Expand Down

0 comments on commit 81984dc

Please sign in to comment.