public function getGridCell(Twig_Environment $environment, $column, $row, $grid)
    {
        $value = $column->renderCell($row->getField($column->getId()), $row, $this->router);

        $id = $this->names[$grid->getHash()];

        if (($id != '' && ($this->hasBlock($environment, $block = 'grid_' . $id . '_column_' . $column->getRenderBlockId() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_' . $column->getType() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_' . $column->getParentType() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_id_' . $column->getRenderBlockId() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_type_' . $column->getType() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_type_' . $column->getParentType() . '_cell')))
            || $this->hasBlock($environment, $block = 'grid_column_' . $column->getRenderBlockId() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_' . $column->getType() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_' . $column->getParentType() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_id_' . $column->getRenderBlockId() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_type_' . $column->getType() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_type_' . $column->getParentType() . '_cell')
        ) {
            return $this->renderBlock($environment, $block, ['grid' => $grid, 'column' => $column, 'row' => $row, 'value' => $value]);
        }

        return $this->renderBlock($environment, 'grid_column_cell', ['grid' => $grid, 'column' => $column, 'row' => $row, 'value' => $value]);
    }
public function getGridCell(Twig_Environment $environment, $column, $row, $grid)
    {
        $value = $column->renderCell($row->getField($column->getId()), $row, $this->router);

        $id = $this->names[$grid->getHash()];

        if (($id != '' && ($this->hasBlock($environment, $block = 'grid_' . $id . '_column_' . $column->getRenderBlockId() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_' . $column->getType() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_' . $column->getParentType() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_id_' . $column->getRenderBlockId() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_type_' . $column->getType() . '_cell')
                    || $this->hasBlock($environment, $block = 'grid_' . $id . '_column_type_' . $column->getParentType() . '_cell')))
            || $this->hasBlock($environment, $block = 'grid_column_' . $column->getRenderBlockId() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_' . $column->getType() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_' . $column->getParentType() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_id_' . $column->getRenderBlockId() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_type_' . $column->getType() . '_cell')
            || $this->hasBlock($environment, $block = 'grid_column_type_' . $column->getParentType() . '_cell')
        ) {
            return $this->renderBlock($environment, $block, ['grid' => $grid, 'column' => $column, 'row' => $row, 'value' => $value]);
        }

        return $this->renderBlock($environment, 'grid_column_cell', ['grid' => $grid, 'column' => $column, 'row' => $row, 'value' => $value]);
    }
public function getGridCell ( Twig_Environment $ environment , $ column , $ row , $ grid ) { $ value = $ column -> renderCell ( $ row -> getField ( $ column -> getId ( ) ) , $ row , $ this -> router ) ; $ id = $ this -> names [ $ grid -> getHash ( ) ] ; if ( ( $ id != '' && ( $ this -> hasBlock ( $ environment , $ block = 'grid_' . $ id . '_column_' . $ column -> getRenderBlockId ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_' . $ id . '_column_' . $ column -> getType ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_' . $ id . '_column_' . $ column -> getParentType ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_' . $ id . '_column_id_' . $ column -> getRenderBlockId ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_' . $ id . '_column_type_' . $ column -> getType ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_' . $ id . '_column_type_' . $ column -> getParentType ( ) . '_cell' ) ) ) || $ this -> hasBlock ( $ environment , $ block = 'grid_column_' . $ column -> getRenderBlockId ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_column_' . $ column -> getType ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_column_' . $ column -> getParentType ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_column_id_' . $ column -> getRenderBlockId ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_column_type_' . $ column -> getType ( ) . '_cell' ) || $ this -> hasBlock ( $ environment , $ block = 'grid_column_type_' . $ column -> getParentType ( ) . '_cell' ) ) { return $ this -> renderBlock ( $ environment , $ block , [ 'grid' => $ grid , 'column' => $ column , 'row' => $ row , 'value' => $ value ] ) ; } return $ this -> renderBlock ( $ environment , 'grid_column_cell' , [ 'grid' => $ grid , 'column' => $ column , 'row' => $ row , 'value' => $ value ] ) ; }
Cell Drawing override.

@param Twig_Environment                       $environment
@param \APY\DataGridBundle\Grid\Column\Column $column
@param \APY\DataGridBundle\Grid\Row           $row
@param \APY\DataGridBundle\Grid\Grid          $grid

@return string
Cell Drawing override .