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
xjm 2020-10-26 14:12:04 -05:00
parent e880e4894c
commit 068fd0be59
2 changed files with 2 additions and 2 deletions

View File

@ -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.
*

View File

@ -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.
*