Loading src/Plugin/Field/FieldFormatter/CustomTwigFormatter.php +4 −4 Original line number Diff line number Diff line Loading @@ -263,7 +263,7 @@ class CustomTwigFormatter extends FormatterBase { '#is_multiple' => $this->fieldDefinition->getFieldStorageDefinition()->isMultiple(), '#third_party_settings' => $this->getThirdPartySettings(), ]; // @todo: Fix attaching libraries for all fields in a generic way here. // @todo Attaching libraries for all fields in a generic way here. if ($field_type == 'file') { $elements['#attached']['library'][] = "file/drupal.file"; } Loading Loading
src/Plugin/Field/FieldFormatter/CustomTwigFormatter.php +4 −4 Original line number Diff line number Diff line Loading @@ -263,7 +263,7 @@ class CustomTwigFormatter extends FormatterBase { '#is_multiple' => $this->fieldDefinition->getFieldStorageDefinition()->isMultiple(), '#third_party_settings' => $this->getThirdPartySettings(), ]; // @todo: Fix attaching libraries for all fields in a generic way here. // @todo Attaching libraries for all fields in a generic way here. if ($field_type == 'file') { $elements['#attached']['library'][] = "file/drupal.file"; } Loading