protected function prepare()
    {
        /** @var CollectionView $collection */
        $collection = $this->getComponent('collection_view');
        $collection->setData($this->getDataProvider());
        if ($collection->getDataInjector() === null) {
            $collection->setDataInjector($this->makeDataInjector());
        }
        $this->applyOperations();
        $this->hideSubmitButtonIfNotUsed();
    }
protected function prepare()
    {
        /** @var CollectionView $collection */
        $collection = $this->getComponent('collection_view');
        $collection->setData($this->getDataProvider());
        if ($collection->getDataInjector() === null) {
            $collection->setDataInjector($this->makeDataInjector());
        }
        $this->applyOperations();
        $this->hideSubmitButtonIfNotUsed();
    }
protected function prepare ( ) { /** @var CollectionView $collection */ $ collection = $ this -> getComponent ( 'collection_view' ) ; $ collection -> setData ( $ this -> getDataProvider ( ) ) ; if ( $ collection -> getDataInjector ( ) === null ) { $ collection -> setDataInjector ( $ this -> makeDataInjector ( ) ) ; } $ this -> applyOperations ( ) ; $ this -> hideSubmitButtonIfNotUsed ( ) ; }
Prepares component for rendering.
Prepares component for rendering .