1 entity_test.entity.inc | public TestEntity::label() |
1 field_test.class.inc | TestEntity::label() |
Implements EntityInterface::label().
Return value
string|null: The label of the entity, or NULL if there is no label defined.
Overrides Entity::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';
}