protected function getListColumnStrategyInstances()
    {
        $instances = [];

        $info = $this->getModelInformation();

        foreach ($info->list->columns as $key => $data) {

            $instance = $this->getListDisplayFactory()->make($data->strategy);

            // Feed any extra information we can gather to the instance
            $instance
                ->setListInformation($data)
                ->setOptions($data->options());

            if ($data->source) {
                if (isset($info->attributes[ $data->source ])) {
                    $instance->setAttributeInformation(
                        $info->attributes[ $data->source ]
                    );
                }
            }

            $instance->initialize($info->modelClass());

            $instances[ $key ] = $instance;
        }

        return $instances;
    }
protected function getListColumnStrategyInstances()
    {
        $instances = [];

        $info = $this->getModelInformation();

        foreach ($info->list->columns as $key => $data) {

            $instance = $this->getListDisplayFactory()->make($data->strategy);

            // Feed any extra information we can gather to the instance
            $instance
                ->setListInformation($data)
                ->setOptions($data->options());

            if ($data->source) {
                if (isset($info->attributes[ $data->source ])) {
                    $instance->setAttributeInformation(
                        $info->attributes[ $data->source ]
                    );
                }
            }

            $instance->initialize($info->modelClass());

            $instances[ $key ] = $instance;
        }

        return $instances;
    }
protected function getListColumnStrategyInstances ( ) { $ instances = [ ] ; $ info = $ this -> getModelInformation ( ) ; foreach ( $ info -> list -> columns as $ key => $ data ) { $ instance = $ this -> getListDisplayFactory ( ) -> make ( $ data -> strategy ) ; // Feed any extra information we can gather to the instance $ instance -> setListInformation ( $ data ) -> setOptions ( $ data -> options ( ) ) ; if ( $ data -> source ) { if ( isset ( $ info -> attributes [ $ data -> source ] ) ) { $ instance -> setAttributeInformation ( $ info -> attributes [ $ data -> source ] ) ; } } $ instance -> initialize ( $ info -> modelClass ( ) ) ; $ instances [ $ key ] = $ instance ; } return $ instances ; }
Collects and returns strategy instances for list columns.

@return ListDisplayInterface[]
Collects and returns strategy instances for list columns .