Returns an object's field value.
Use this function to access virtual object fields, which cannot be accessed directly by Twig engine.
If you are sure that an object property does exist, but Twig reports that the method doesn't exist, use this function.
The following example outputs the current customer name.
{{ field(this.customer, 'name') }}