public function FormatterInterface::view in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Field/FormatterInterface.php \Drupal\Core\Field\FormatterInterface::view()
Builds a renderable array for a fully themed field.
Parameters
\Drupal\Core\Field\FieldItemListInterface $items: The field values to be rendered.
string $langcode: (optional) The language that should be used to render the field. Defaults to the current content language.
Return value
array A renderable array for a themed field with its label and all its values.
1 method overrides FormatterInterface::view()
- FormatterBase::view in core/
lib/ Drupal/ Core/ Field/ FormatterBase.php - Builds a renderable array for a fully themed field.
File
- core/
lib/ Drupal/ Core/ Field/ FormatterInterface.php, line 79 - Contains \Drupal\Core\Field\FormatterInterface.
Class
- FormatterInterface
- Interface definition for field formatter plugins.
Namespace
Drupal\Core\FieldCode
public function view(FieldItemListInterface $items, $langcode = NULL);