From 5ab80a4c36be89e05e96d999fb5d02f9a98abf1a Mon Sep 17 00:00:00 2001 From: Chi Date: Wed, 10 Jul 2019 17:48:55 +0500 Subject: [PATCH] Fix documentation for drupal_field() function --- src/TwigExtension.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/TwigExtension.php b/src/TwigExtension.php index c4484bd..0d88b29 100644 --- a/src/TwigExtension.php +++ b/src/TwigExtension.php @@ -327,12 +327,11 @@ class TwigExtension extends \Twig_Extension { /** * Returns the render array for a single entity field. * - * This works very much like drupal_entity() except it prints only one - * specific field. - * * Example: * @code * {{ drupal_field('field_image', 'node', 1) }} + * {{ drupal_field('field_image', 'node', 1, 'teaser') }} + * {{ drupal_field('field_image', 'node', 1, {type: 'image_url', settings: {image_style: 'large'}}) }} * @endcode * * @param string $field_name