public function ExtraFieldDisplayFormattedBase::getLabel in Extra Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/ExtraFieldDisplayFormattedBase.php \Drupal\extra_field\Plugin\ExtraFieldDisplayFormattedBase::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 ExtraFieldDisplayFormattedInterface::getLabel
1 call to ExtraFieldDisplayFormattedBase::getLabel()
- ExtraFieldDisplayFormattedBase::view in src/
Plugin/ ExtraFieldDisplayFormattedBase.php - Builds a renderable array for the field.
5 methods override ExtraFieldDisplayFormattedBase::getLabel()
- EmptyFormattedFieldTest::getLabel in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ EmptyFormattedFieldTest.php - The label of the field.
- ExampleFormattedField::getLabel in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleFormattedField.php - The label of the field.
- ExampleMultilingualField::getLabel in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleMultilingualField.php - The label of the field.
- MultipleItemsFieldWithCacheDependencyTest::getLabel in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ MultipleItemsFieldWithCacheDependencyTest.php - The label of the field.
- SingleTextFieldTest::getLabel in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ SingleTextFieldTest.php - The label of the field.
File
- src/
Plugin/ ExtraFieldDisplayFormattedBase.php, line 101
Class
- ExtraFieldDisplayFormattedBase
- Base class for Extra field Display plugins with field wrapper output.
Namespace
Drupal\extra_field\PluginCode
public function getLabel() {
return '';
}