1.20.x entity_test.entity.inc public TestEntity::entityType()
1.20.x field_test.class.inc public TestEntity::entityType()

Returns the type of the entity.

Return value

The type of the entity.:

Overrides EntityInterface::entityType

File

modules/field/tests/field_test/field_test.class.inc, line 63

Class

TestEntity
Test class for the test_entity entity type.

Code

public function entityType() {
  return 'test_entity';
}