We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d51ec commit 197fc07Copy full SHA for 197fc07
stubs/Drupal/Core/Field/FormatterInterface.stub
@@ -2,14 +2,25 @@
2
3
namespace Drupal\Core\Field;
4
5
+/**
6
+ * @template TFieldItemList of \Drupal\Core\Field\FieldItemListInterface
7
+ */
8
interface FormatterInterface {
9
10
/**
- * @param \Drupal\Core\Field\FieldItemListInterface<\Drupal\Core\Field\FieldItemInterface> $items
11
+ * @param TFieldItemList $items
12
* @param string $langcode
13
*
14
* @return array<int, array<int|string, mixed>>
15
*/
16
public function viewElements(FieldItemListInterface $items, $langcode): array;
17
18
+ /**
19
20
+ * @param string $langcode
21
+ *
22
+ * @return array<int|string, mixed>
23
24
+ public function view(FieldItemListInterface $items, $langcode = NULL);
25
+
26
}
0 commit comments