You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/field_types.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,13 +320,13 @@ $field->setOptions([
320
320
]);
321
321
```
322
322
323
-
Callback
323
+
Callable
324
324
--------
325
325
326
-
The Callback column aims to offer almost as much flexibility as the Twig column, but without requiring the creation of a template.
327
-
You simply need to specify a callback, which allows you to transform the 'data' variable on the fly.
326
+
The Callable column aims to offer almost as much flexibility as the Twig column, but without requiring the creation of a template.
327
+
You simply need to specify a callable, which allows you to transform the 'data' variable on the fly.
328
328
329
-
When defining callbacks in YAML, only string representations of callables are supported.
329
+
When defining callables in YAML, only string representations of callables are supported.
330
330
When configuring grids using PHP (as opposed to service grid configuration), both string and array callables are supported. However, closures cannot be used due to restrictions in Symfony's configuration (values of type "Closure" are not permitted in service configuration files).
331
331
By contrast, when configuring grids with service definitions, you can use both callables and closures.
0 commit comments