Commit 6a910ad4 authored by xjm's avatar xjm
Browse files

Issue #3173004 by beram: Incorrect typehint documentation for...

Issue #3173004 by beram: Incorrect typehint documentation for FieldItemInterface::view() and FieldItemListInterface::view(): $display_options could also be a string
parent 9a6f2d10
......@@ -162,7 +162,7 @@ public function __unset($property_name);
/**
* 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 @@ public function deleteRevision();
/**
* 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.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment