📜  警告:Drupal\field_group\FormatterHelper::formProcess() 的参数 1 应为参考,Drupal\Core\Render\Renderer->doTrustedCallback() 中给出的值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:43.251000             🧑  作者: Mango

代码示例1
Warning: Parameter 1 to Drupal\field_group\FormatterHelper::formProcess() expected to be a reference, value given in Drupal\Core\Render\Renderer->doTrustedCallback() (line 101 of core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php).
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 781)