You are here

public function EntityCrudOutputWrapper::getEntity in GraphQL 8.3

Returns the entity that was created.

Return value

\Drupal\Core\Entity\EntityInterface|null The created entity object or NULL if creation failed.

File

modules/graphql_core/src/GraphQL/EntityCrudOutputWrapper.php, line 58

Class

EntityCrudOutputWrapper

Namespace

Drupal\graphql_core\GraphQL

Code

public function getEntity() {
  return $this->entity;
}