function RealisticDummyContentEntityBase::GetType in Realistic Dummy Content 7
Get the entity type of the entity being manipulated.
All entities must have a type and a bundle. The type can be node, user, etc. and the bundle can be article, page. In case of a user, there must be a bundle even if there is only one: it is called user, like the entity type.
Return value
The entity type, for example "node" or "user".
2 calls to RealisticDummyContentEntityBase::GetType()
- RealisticDummyContentEntityBase::GetBundle in api/
includes/ RealisticDummyContentEntityBase.inc - Get the bundle of the entity being manipulated.
- RealisticDummyContentFieldModifier::GetFields in api/
includes/ RealisticDummyContentEntityFieldModifier.inc - Get fields for the entity, for example body or field_image.
File
- api/
includes/ RealisticDummyContentEntityBase.inc, line 97 - Define RealisticDummyContentEntityBase autoload class.
Class
- RealisticDummyContentEntityBase
- Generic entity manipulator.
Code
function GetType() {
$return = $this->type;
return $return;
}