Commit 6abcb743 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 ccf9f34b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.
   *
+1 −1
Original line number Diff line number Diff line
@@ -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.
   *