src/Extension/Core/Type/ColumnType.php
public function buildColumn(ColumnInterface $column, array $options)
    {
        $dataProvider = $options['data_provider'];
        $parentDataProvider = $options['parent_data_provider'];

        if (!$dataProvider instanceof \Closure) {
            $dataProvider = $parentDataProvider ?: function ($data) use ($column, $dataProvider) {
                static $path;

                if (null === $path) {
                    $path = $this->createDataProviderPath($column, $data, $dataProvider);
                }

                return $this->propertyAccessor->getValue($data, $path);
            };
        }

        $column->setDataProvider($dataProvider);
    }
public function buildColumn(ColumnInterface $column, array $options)
    {
        $dataProvider = $options['data_provider'];
        $parentDataProvider = $options['parent_data_provider'];

        if (!$dataProvider instanceof \Closure) {
            $dataProvider = $parentDataProvider ?: function ($data) use ($column, $dataProvider) {
                static $path;

                if (null === $path) {
                    $path = $this->createDataProviderPath($column, $data, $dataProvider);
                }

                return $this->propertyAccessor->getValue($data, $path);
            };
        }

        $column->setDataProvider($dataProvider);
    }
{@inheritdoc}