public function MultipleItemsFieldWithCacheDependencyTest::getLabel in Extra Field 8
Same name and namespace in other branches
- 8.2 tests/extra_field_test/src/Plugin/ExtraField/Display/MultipleItemsFieldWithCacheDependencyTest.php \Drupal\extra_field_test\Plugin\ExtraField\Display\MultipleItemsFieldWithCacheDependencyTest::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/ MultipleItemsFieldWithCacheDependencyTest.php, line 94
Class
- MultipleItemsFieldWithCacheDependencyTest
- Extra field Display for a field with multiple items output.
Namespace
Drupal\extra_field_test\Plugin\ExtraField\DisplayCode
public function getLabel() {
return $this
->t('Related pages');
}