From 6073d18a469859752607ff028a492d640509238c Mon Sep 17 00:00:00 2001 From: Chi Date: Thu, 24 Nov 2022 23:43:52 +0500 Subject: [PATCH] Fix documentation of Field View Builder --- src/View/FieldViewBuilder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/View/FieldViewBuilder.php b/src/View/FieldViewBuilder.php index 57cc259..35af7c3 100644 --- a/src/View/FieldViewBuilder.php +++ b/src/View/FieldViewBuilder.php @@ -34,7 +34,7 @@ class FieldViewBuilder { * @param string $field_name * The field name. * @param string|array $view_mode - * (optional) The view mode that should be used to render the field. + * (optional) The view mode or display options. * @param string $langcode * (optional) Language code to load translation. * @param bool $check_access @@ -42,6 +42,8 @@ class FieldViewBuilder { * * @return array * A render array for the field. + * + * @see \Drupal\Core\Entity\EntityViewBuilderInterface::viewField() */ public function build( EntityInterface $entity,