function RealisticDummyContentFieldModifier::GetUid in Realistic Dummy Content 7
Get the uid property of this entity, or 0.
Return value
The uid of the associated entity.
File
- api/
includes/ RealisticDummyContentEntityFieldModifier.inc, line 183 - Define RealisticDummyContentFieldModifier autoload class.
Class
- RealisticDummyContentFieldModifier
- Field modifier class.
Code
function GetUid() {
$entity = $this
->GetEntity();
if (isset($entity->uid)) {
return $entity->uid;
}
else {
return 0;
}
}