Skip to content

Commit e27ce97

Browse files
Niklanmglaman
andauthored
Add stub for \Drupal\Core\Field\FormatterInterface (mglaman#822)
Add FormatterInterface.stub Co-authored-by: Matt Glaman <[email protected]>
1 parent f7bc280 commit e27ce97

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Drupal\Core\Field;
4+
5+
interface FormatterInterface {
6+
7+
/**
8+
* @param \Drupal\Core\Field\FieldItemListInterface<\Drupal\Core\Field\FieldItemInterface> $items
9+
* @param string $langcode
10+
*
11+
* @return array<int, array<int|string, mixed>>
12+
*/
13+
public function viewElements(FieldItemListInterface $items, $langcode): array;
14+
15+
}

0 commit comments

Comments
 (0)