Browse Source

Fix documentation of Field View Builder

merge-requests/18/head
Chi 2 years ago
parent
commit
6073d18a46
  1. 4
      src/View/FieldViewBuilder.php

4
src/View/FieldViewBuilder.php

@ -34,7 +34,7 @@ class FieldViewBuilder {
* @param string $field_name * @param string $field_name
* The field name. * The field name.
* @param string|array $view_mode * @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 * @param string $langcode
* (optional) Language code to load translation. * (optional) Language code to load translation.
* @param bool $check_access * @param bool $check_access
@ -42,6 +42,8 @@ class FieldViewBuilder {
* *
* @return array * @return array
* A render array for the field. * A render array for the field.
*
* @see \Drupal\Core\Entity\EntityViewBuilderInterface::viewField()
*/ */
public function build( public function build(
EntityInterface $entity, EntityInterface $entity,

Loading…
Cancel
Save