You are here

function EntityBase::GetEntity in Realistic Dummy Content 8

Getter for the entity.

Return value

An entity object, for example \Drupal\node\Entity\Node

3 calls to EntityBase::GetEntity()
EntityBase::GetBundle in api/src/manipulators/EntityBase.php
Get the bundle of the entity being manipulated.
FieldModifier::GetFields in api/src/manipulators/FieldModifier.php
Get fields for the entity, for example body or field_image.
FieldModifier::GetUid in api/src/manipulators/FieldModifier.php
Get the uid property of this entity, or 0.

File

api/src/manipulators/EntityBase.php, line 45
Define autoload class.

Class

EntityBase
Generic entity manipulator.

Namespace

Drupal\realistic_dummy_content_api\manipulators

Code

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