protected property LabelOnlyResourceObject::$entity in JSON:API 8.2
The entity represented by this resource object.
Type: \Drupal\Core\Entity\EntityInterface
File
- src/
JsonApiResource/ LabelOnlyResourceObject.php, line 25
Class
- LabelOnlyResourceObject
- Value object decorating a ResourceObject; only its label is available.
Namespace
Drupal\jsonapi\JsonApiResourceCode
protected $entity;