Issue #3173004 by beram: Incorrect typehint documentation for FieldItemInterface::view() and FieldItemListInterface::view(): $display_options could also be a string
(cherry picked from commit 6a910ad428
)
merge-requests/64/head
parent
e880e4894c
commit
068fd0be59
|
@ -162,7 +162,7 @@ interface FieldItemInterface extends ComplexDataInterface {
|
|||
/**
|
||||
* Returns a renderable array for a single field item.
|
||||
*
|
||||
* @param array $display_options
|
||||
* @param string|array $display_options
|
||||
* Can be either the name of a view mode, or an array of display settings.
|
||||
* See EntityViewBuilderInterface::viewField() for more information.
|
||||
*
|
||||
|
|
|
@ -174,7 +174,7 @@ interface FieldItemListInterface extends ListInterface, AccessibleInterface {
|
|||
/**
|
||||
* Returns a renderable array for the field items.
|
||||
*
|
||||
* @param array $display_options
|
||||
* @param string|array $display_options
|
||||
* Can be either the name of a view mode, or an array of display settings.
|
||||
* See EntityViewBuilderInterface::viewField() for more information.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue