You are browsing upcoming documentation for version 5.1 of OroCommerce, OroCRM, and OroPlatform, scheduled for release in March 2023. Read version 5.0 (the latest LTS version) of the Oro documentation to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

References in YAML Configuration

You can use a static method call, a service method call, and class constant access in the YAML datagrid configuration. These references will be called by SystemAwareResolver while building the datagrid in the datagrid manager.

References types

Service Call


Call method getChoicesQuery with datagrid name and YAML configuration key as arguments from oro_email.grid.query_builder service.

Static Method Call


The class name can be defined in the container’s parameters or specified directly.



PHP is_callable is used to determine if it is callable or should be treated as constant.

The value becomes unchanged if it is not callable and no constant exists with such a name in the class.

Service Injection

some_key: @some.serviceID