Skip to content
Snippets Groups Projects
Commit 068fd0be authored by Jess's avatar Jess
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

(cherry picked from commit 6a910ad4)
parent e880e489
No related branches found
No related tags found
No related merge requests found
...@@ -162,7 +162,7 @@ public function __unset($property_name); ...@@ -162,7 +162,7 @@ public function __unset($property_name);
/** /**
* Returns a renderable array for a single field item. * 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. * Can be either the name of a view mode, or an array of display settings.
* See EntityViewBuilderInterface::viewField() for more information. * See EntityViewBuilderInterface::viewField() for more information.
* *
......
...@@ -174,7 +174,7 @@ public function deleteRevision(); ...@@ -174,7 +174,7 @@ public function deleteRevision();
/** /**
* Returns a renderable array for the field items. * 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. * Can be either the name of a view mode, or an array of display settings.
* See EntityViewBuilderInterface::viewField() for more information. * See EntityViewBuilderInterface::viewField() for more information.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment