public function EmptyFormattedFieldTest::getLabel in Extra Field 8
Same name and namespace in other branches
- 8.2 tests/extra_field_test/src/Plugin/ExtraField/Display/EmptyFormattedFieldTest.php \Drupal\extra_field_test\Plugin\ExtraField\Display\EmptyFormattedFieldTest::getLabel()
The label of the field.
If applicable, the code has to take care of the translatability.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup The field label.
Overrides ExtraFieldDisplayFormattedBase::getLabel
File
- tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ EmptyFormattedFieldTest.php, line 25
Class
- EmptyFormattedFieldTest
- Extra field Display for a field without content.
Namespace
Drupal\extra_field_test\Plugin\ExtraField\DisplayCode
public function getLabel() {
return 'Empty field';
}