function FieldItemListInterface::view
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::view()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::view()
- 11.x core/lib/Drupal/Core/Field/FieldItemListInterface.php \Drupal\Core\Field\FieldItemListInterface::view()
Returns a renderable array for the field items.
Parameters
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.
Return value
array A renderable array for the field values.
See also
\Drupal\Core\Entity\EntityViewBuilderInterface::viewField()
\Drupal\Core\Field\FieldItemInterface::view()
1 method overrides FieldItemListInterface::view()
- FieldItemList::view in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Returns a renderable array for the field items.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemListInterface.php, line 187
Class
- FieldItemListInterface
- Interface for fields, being lists of field items.
Namespace
Drupal\Core\FieldCode
public function view($display_options = []);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.