From 58ca88b667e8bde6b4566e4638441ed5e19c9f3e Mon Sep 17 00:00:00 2001 From: sonfd Date: Sun, 4 Jul 2021 10:30:46 +0500 Subject: [PATCH] Issue #3222014 by sonfd: Allow custom display settings for drupal_field() --- src/TwigTweakExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TwigTweakExtension.php b/src/TwigTweakExtension.php index 16ca82f..a3bc167 100644 --- a/src/TwigTweakExtension.php +++ b/src/TwigTweakExtension.php @@ -192,7 +192,7 @@ class TwigTweakExtension extends AbstractExtension { /** * Returns the render array for a single entity field. */ - public static function drupalField(string $field_name, string $entity_type, string $id, string $view_mode = 'full', string $langcode = NULL, bool $check_access = TRUE): array { + public static function drupalField(string $field_name, string $entity_type, string $id, $view_mode = 'full', string $langcode = NULL, bool $check_access = TRUE): array { $entity = \Drupal::entityTypeManager()->getStorage($entity_type)->load($id); if ($entity) { return \Drupal::service('twig_tweak.field_view_builder')