You are here

function FieldModifier::GetUid in Realistic Dummy Content 8

Get the uid property of this entity, or 0.

Return value

The uid of the associated entity.

File

api/src/manipulators/FieldModifier.php, line 260
Define autoload class.

Class

FieldModifier
Field modifier class.

Namespace

Drupal\realistic_dummy_content_api\manipulators

Code

function GetUid() {
  $entity = $this
    ->GetEntity();
  if (isset($entity->uid)) {
    return $entity->uid;
  }
  else {
    return 0;
  }
}