You are here

public function LabelOnlyResourceObject::getEntity in JSON:API 8.2

Gets the decorated entity.

Return value

\Drupal\Core\Entity\EntityInterface The label for which to only normalize its label.

File

src/JsonApiResource/LabelOnlyResourceObject.php, line 49

Class

LabelOnlyResourceObject
Value object decorating a ResourceObject; only its label is available.

Namespace

Drupal\jsonapi\JsonApiResource

Code

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