function DummyImageFormatter::viewElements
Same name in other branches
- 9 core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldFormatter/DummyImageFormatter.php \Drupal\image_module_test\Plugin\Field\FieldFormatter\DummyImageFormatter::viewElements()
- 8.9.x core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldFormatter/DummyImageFormatter.php \Drupal\image_module_test\Plugin\Field\FieldFormatter\DummyImageFormatter::viewElements()
- 11.x core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldFormatter/DummyImageFormatter.php \Drupal\image_module_test\Plugin\Field\FieldFormatter\DummyImageFormatter::viewElements()
Overrides FormatterInterface::viewElements
File
-
core/
modules/ image/ tests/ modules/ image_module_test/ src/ Plugin/ Field/ FieldFormatter/ DummyImageFormatter.php, line 25
Class
- DummyImageFormatter
- Plugin implementation of the Dummy image formatter.
Namespace
Drupal\image_module_test\Plugin\Field\FieldFormatterCode
public function viewElements(FieldItemListInterface $items, $langcode) {
return [
[
'#markup' => 'Dummy',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.