1 entity_test.entity.inc public TestEntity::id()
1 field_test.class.inc TestEntity::id()

Returns the entity identifier (the entity's machine name or numeric ID).

Return value

The identifier of the entity, or NULL if the entity does not yet have: an identifier.

Overrides EntityInterface::id

File

core/modules/field/tests/field_test/field_test.class.inc, line 59

Class

TestEntity
Test class for the test_entity entity type.

Code

function id() {
  return $this->id;
}