function LabelOnlyResourceObject::getEntity

Same name in other branches
  1. 9 core/modules/jsonapi/src/JsonApiResource/LabelOnlyResourceObject.php \Drupal\jsonapi\JsonApiResource\LabelOnlyResourceObject::getEntity()
  2. 8.9.x core/modules/jsonapi/src/JsonApiResource/LabelOnlyResourceObject.php \Drupal\jsonapi\JsonApiResource\LabelOnlyResourceObject::getEntity()
  3. 11.x core/modules/jsonapi/src/JsonApiResource/LabelOnlyResourceObject.php \Drupal\jsonapi\JsonApiResource\LabelOnlyResourceObject::getEntity()

Gets the decorated entity.

Return value

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

File

core/modules/jsonapi/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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.