Skip to content

Commit 40ddc27

Browse files
Niklanmglaman
andcommitted
Add stub for \Drupal\Core\Field\FormatterInterface (#822)
Add FormatterInterface.stub Co-authored-by: Matt Glaman <[email protected]> (cherry picked from commit e27ce97)
1 parent a40d117 commit 40ddc27

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
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)