public function ArticleResponse::article in GraphQL 8.4
Same name in this branch
- 8.4 examples/graphql_composable/src/GraphQL/Response/ArticleResponse.php \Drupal\graphql_composable\GraphQL\Response\ArticleResponse::article()
- 8.4 examples/graphql_composable/src/Wrappers/Response/ArticleResponse.php \Drupal\graphql_composable\Wrappers\Response\ArticleResponse::article()
Gets the article to be served.
Return value
\Drupal\Core\Entity\EntityInterface|null The article to be served.
File
- examples/
graphql_composable/ src/ Wrappers/ Response/ ArticleResponse.php, line 38
Class
- ArticleResponse
- Type of response used when an article is returned.
Namespace
Drupal\graphql_composable\Wrappers\ResponseCode
public function article() : ?EntityInterface {
return $this->article;
}