You are here

public function ArticleResponse::article in GraphQL 8.4

Same name in this branch
  1. 8.4 examples/graphql_composable/src/GraphQL/Response/ArticleResponse.php \Drupal\graphql_composable\GraphQL\Response\ArticleResponse::article()
  2. 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/GraphQL/Response/ArticleResponse.php, line 36

Class

ArticleResponse
Type of response used when an article is returned.

Namespace

Drupal\graphql_composable\GraphQL\Response

Code

public function article() : ?EntityInterface {
  return $this->article;
}