Loading core/lib/Drupal/Core/Render/Element/ElementInterface.php +2 Changes for core/lib/Drupal/Core/Render/Element/ElementInterface.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ * properties specified in render arrays. Thus, you can specify defaults for any * Render API keys, in addition to those explicitly documented by * \Drupal\Core\Render\ElementInfoManagerInterface::getInfo(). * These defaults will be serialized so they should not contain closures or * anonymous functions. * * Some render elements are specifically form input elements; see * \Drupal\Core\Render\Element\FormElementInterface for more information. Loading core/lib/Drupal/Core/Render/Element/RenderElementBase.php +5 Changes for core/lib/Drupal/Core/Render/Element/RenderElementBase.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ * of type string, they would generally end up being * \Drupal\Core\StringTranslation\TranslatableMarkup objects instead. * * For properties containing callables it is not recommended to use a closure * or anonymous function because it will trigger an error if the element is * serialized. Examples in which serializing occurs include form caching. * * Here is the list of the properties used during the rendering of all render * elements: * - #access: (bool or AccessResultInterface) Loading Loading @@ -124,6 +128,7 @@ * @see \Drupal\Core\Render\ElementInterface * @see \Drupal\Core\Render\ElementInfoManager * @see plugin_api * @see \Drupal\Core\Form\FormState::setCached() * * @ingroup theme_render */ Loading core/lib/Drupal/Core/Render/theme.api.php +2 Changes for core/lib/Drupal/Core/Render/theme.api.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -857,6 +857,8 @@ function hook_render_template($template_file, $variables): string|\Stringable { * @param array $info * An associative array with structure identical to that of the return value * of \Drupal\Core\Render\ElementInfoManagerInterface::getInfo(). * This array will be serialized so it should not contain closures or * anonymous functions. * * @see \Drupal\Core\Render\ElementInfoManager * @see \Drupal\Core\Render\Element\ElementInterface Loading Loading
core/lib/Drupal/Core/Render/Element/ElementInterface.php +2 Changes for core/lib/Drupal/Core/Render/Element/ElementInterface.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -13,6 +13,8 @@ * properties specified in render arrays. Thus, you can specify defaults for any * Render API keys, in addition to those explicitly documented by * \Drupal\Core\Render\ElementInfoManagerInterface::getInfo(). * These defaults will be serialized so they should not contain closures or * anonymous functions. * * Some render elements are specifically form input elements; see * \Drupal\Core\Render\Element\FormElementInterface for more information. Loading
core/lib/Drupal/Core/Render/Element/RenderElementBase.php +5 Changes for core/lib/Drupal/Core/Render/Element/RenderElementBase.php: 5 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ * of type string, they would generally end up being * \Drupal\Core\StringTranslation\TranslatableMarkup objects instead. * * For properties containing callables it is not recommended to use a closure * or anonymous function because it will trigger an error if the element is * serialized. Examples in which serializing occurs include form caching. * * Here is the list of the properties used during the rendering of all render * elements: * - #access: (bool or AccessResultInterface) Loading Loading @@ -124,6 +128,7 @@ * @see \Drupal\Core\Render\ElementInterface * @see \Drupal\Core\Render\ElementInfoManager * @see plugin_api * @see \Drupal\Core\Form\FormState::setCached() * * @ingroup theme_render */ Loading
core/lib/Drupal/Core/Render/theme.api.php +2 Changes for core/lib/Drupal/Core/Render/theme.api.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -857,6 +857,8 @@ function hook_render_template($template_file, $variables): string|\Stringable { * @param array $info * An associative array with structure identical to that of the return value * of \Drupal\Core\Render\ElementInfoManagerInterface::getInfo(). * This array will be serialized so it should not contain closures or * anonymous functions. * * @see \Drupal\Core\Render\ElementInfoManager * @see \Drupal\Core\Render\Element\ElementInterface Loading