lib/Item/ColumnProvider/ColumnProvider.php
private function provideColumn(ItemInterface $item, array $columnConfig): string
    {
        if (isset($columnConfig['template'])) {
            return $this->itemRenderer->renderItem(
                $item,
                $columnConfig['template']
            );
        }

        if (!isset($this->columnValueProviders[$columnConfig['value_provider']])) {
            throw new InvalidArgumentException(
                sprintf(
                    'Column value provider "%s" does not exist',
                    $columnConfig['value_provider']
                )
            );
        }

        $columnValue = $this
            ->columnValueProviders[$columnConfig['value_provider']]
            ->getValue($item);

        return $columnValue ?? '';
    }
private function provideColumn(ItemInterface $item, array $columnConfig): string
    {
        if (isset($columnConfig['template'])) {
            return $this->itemRenderer->renderItem(
                $item,
                $columnConfig['template']
            );
        }

        if (!isset($this->columnValueProviders[$columnConfig['value_provider']])) {
            throw new InvalidArgumentException(
                sprintf(
                    'Column value provider "%s" does not exist',
                    $columnConfig['value_provider']
                )
            );
        }

        $columnValue = $this
            ->columnValueProviders[$columnConfig['value_provider']]
            ->getValue($item);

        return $columnValue ?? '';
    }
private function provideColumn ( ItemInterface $ item , array $ columnConfig ) : string { if ( isset ( $ columnConfig [ 'template' ] ) ) { return $ this -> itemRenderer -> renderItem ( $ item , $ columnConfig [ 'template' ] ) ; } if ( ! isset ( $ this -> columnValueProviders [ $ columnConfig [ 'value_provider' ] ] ) ) { throw new InvalidArgumentException ( sprintf ( 'Column value provider "%s" does not exist' , $ columnConfig [ 'value_provider' ] ) ) ; } $ columnValue = $ this -> columnValueProviders [ $ columnConfig [ 'value_provider' ] ] -> getValue ( $ item ) ; return $ columnValue ?? '' ; }
Provides the column with specified identifier for selected item.

@throws \Netgen\ContentBrowser\Exceptions\InvalidArgumentException If value provider for the column does not exist
Provides the column with specified identifier for selected item .