Skip to content

Commit

Permalink
GraphQL-176: Show only active CMS Blocks
Browse files Browse the repository at this point in the history
-- Fix static tests
  • Loading branch information
Valeriy Nayda committed Nov 22, 2018
1 parent 6d984eb commit d3a22e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/CmsGraphQl/Model/Resolver/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function resolve(
}

/**
* Get block identifiers
*
* @param array $args
* @return string[]
* @throws GraphQlInputException
Expand All @@ -69,6 +71,8 @@ private function getBlockIdentifiers(array $args): array
}

/**
* Get blocks data
*
* @param array $blockIdentifiers
* @return array
* @throws GraphQlNoSuchEntityException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public function __construct(
}

/**
* Get block data
*
* @param string $blockIdentifier
* @return array
* @throws NoSuchEntityException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ class Client
private $json;

/**
* CurlClient constructor.
*
* @param CurlClient|null $curlClient
* @param JsonSerializer|null $json
*/
Expand Down Expand Up @@ -81,6 +79,8 @@ public function postQuery(string $query, array $variables = [], string $operatio
}

/**
* Process errors
*
* @param array $responseBodyArray
* @throws \Exception
*/
Expand Down

0 comments on commit d3a22e9

Please sign in to comment.