You are here

public function SingleTextFieldTest::getLabel in Extra Field 8

Same name and namespace in other branches
  1. 8.2 tests/extra_field_test/src/Plugin/ExtraField/Display/SingleTextFieldTest.php \Drupal\extra_field_test\Plugin\ExtraField\Display\SingleTextFieldTest::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/SingleTextFieldTest.php, line 35

Class

SingleTextFieldTest
Extra field Display for a field with single item output.

Namespace

Drupal\extra_field_test\Plugin\ExtraField\Display

Code

public function getLabel() {
  return 'Single text';
}