You are here

function RealisticDummyContentAttribute::GetEntityType in Realistic Dummy Content 7

Get the entity type of the associated entity.

Return value

The entity type as a string, node or user for example.

1 call to RealisticDummyContentAttribute::GetEntityType()
RealisticDummyContentAttribute::GetCandidateFiles in api/includes/RealisticDummyContentAttribute.inc
Get all candidate files for a given field for this entity.

File

api/includes/RealisticDummyContentAttribute.inc, line 104
Define RealisticDummyContentAttribute autoload class.

Class

RealisticDummyContentAttribute
Represents either a field or a property for an entity.

Code

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