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

Returns the label of the entity.

Return value

The label of the entity, or NULL if there is no label defined.:

Overrides EntityInterface::label

File

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

Class

TestEntity
Test class for the test_entity entity type.

Code

function label() {
  return 'label';
}